/* ==========================================================================
   URBAN GARDEN — Estudio Ciucci · Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
  --color-bg: #f6f5f1;
  --color-bg-alt: #ffffff;
  --color-ink: #1a1a18;
  --color-ink-soft: #4a4a47;
  --color-mute: #8a8a85;
  --color-line: #d8d6cf;
  --color-leaf: #4f5b3c;
  --color-stone: #b9b3a4;

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;

  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Typography ---------------------------------------------------------------*/
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-ink);
}
.eyebrow--muted { color: var(--color-mute); }

.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }

.display-xl { font-size: clamp(48px, 9vw, 140px); font-weight: 800; line-height: 0.92; letter-spacing: -0.03em; }
.display-l  { font-size: clamp(36px, 6vw, 88px); font-weight: 700; line-height: 1.0; }
.display-m  { font-size: clamp(28px, 4vw, 56px); font-weight: 700; line-height: 1.05; }
.serif-l    { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: clamp(28px, 4vw, 56px); line-height: 1.15; letter-spacing: -0.01em; }
.serif-m    { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.25; }

p { font-size: 15px; line-height: 1.7; color: var(--color-ink-soft); max-width: 60ch; }
p.lede { font-size: 17px; color: var(--color-ink); }

/* Layout -------------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.divider { height: 1px; background: var(--color-line); width: 100%; }

/* NAV ---------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.3s var(--ease), color 0.4s var(--ease);
}
/* When over a dark hero (default on pages with hero) — white text */
body.has-dark-hero .nav:not(.is-scrolled) { color: #ffffff; }
body.has-dark-hero .nav:not(.is-scrolled) .nav__brand .marker { color: rgba(255,255,255,0.7); }
body.has-dark-hero .nav:not(.is-scrolled) .nav__menu a::after { background: white; }
body.has-dark-hero .nav:not(.is-scrolled) .nav__cta { border-color: rgba(255,255,255,0.6); color: #fff; }
body.has-dark-hero .nav:not(.is-scrolled) .nav__cta:hover { background: white; color: var(--color-ink); border-color: white; }
body.has-dark-hero .nav:not(.is-scrolled) .nav__burger span { background: white; }

.nav.is-scrolled {
  background: rgba(246, 245, 241, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-line);
  padding-block: 14px;
  color: var(--color-ink);
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 6px;
}
.nav__brand .dot { color: var(--color-ink); }
.nav__brand .marker { font-weight: 400; font-size: 12px; letter-spacing: 0.2em; color: var(--color-mute); text-transform: uppercase; margin-left: 4px; }

.nav__menu { display: flex; gap: 38px; list-style: none; }
.nav__menu a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  position: relative; padding-block: 6px;
  transition: color 0.25s var(--ease);
}
.nav__menu a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--color-ink);
  transition: width 0.35s var(--ease);
}
.nav__menu a:hover::after, .nav__menu a.active::after { width: 100%; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--color-ink);
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__cta:hover { background: var(--color-ink); color: var(--color-bg); }

.nav__burger { display: none; width: 28px; height: 20px; position: relative; }
.nav__burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--color-ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__burger span:nth-child(1) { top: 4px; }
.nav__burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__burger span:nth-child(3) { bottom: 4px; }
.nav__burger.is-open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-mobile-open + .nav__drawer,
  .nav__drawer.is-open { transform: translateY(0); }
}

.nav__drawer {
  position: fixed; inset: 0;
  background: var(--color-bg);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  z-index: 49;
  padding: 110px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 18px;
}
.nav__drawer.is-open { transform: translateY(0); }
.nav__drawer a {
  font-size: 32px; font-weight: 600; letter-spacing: -0.02em;
  padding-block: 14px;
  border-bottom: 1px solid var(--color-line);
}
.nav__drawer .nav__cta { display: inline-flex; align-self: flex-start; margin-top: 24px; }

/* HERO --------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) 60px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('../img/lamadrid-fachada.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 18%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.05) 70%, rgba(0,0,0,0.55) 100%);
}
.hero__top {
  position: absolute; top: 110px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 2; color: var(--color-bg);
}
.hero__top .eyebrow { color: rgba(255,255,255,0.85); }
.hero__top-meta { text-align: right; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.78); line-height: 1.6; }

.hero__content { position: relative; z-index: 2; max-width: 1100px; color: var(--color-bg); }
.hero__title {
  font-size: clamp(56px, 11vw, 180px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero__title .dot { display: inline; }
.hero__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.3;
  margin-top: 12px;
  max-width: 26ch;
  color: rgba(255,255,255,0.95);
}

.hero__scroll {
  position: absolute;
  bottom: 30px; right: var(--gutter);
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  z-index: 2;
}
.hero__scroll-line { width: 60px; height: 1px; background: rgba(255,255,255,0.6); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ''; position: absolute; left: -60px; top: 0; width: 60px; height: 1px;
  background: white; animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { to { left: 60px; } }

/* INTRO -------------------------------------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.intro__label { position: sticky; top: 100px; }
.intro__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--color-ink);
}
.intro__lede strong {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
}

/* PROJECTS ---------------------------------------------------------------- */
.projects { background: var(--color-ink); color: var(--color-bg); }
.projects .eyebrow { color: rgba(255,255,255,0.65); }
.projects__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 60px; gap: 30px; flex-wrap: wrap;
}
.projects__title {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.projects__title em { font-family: var(--font-serif); font-style: italic; font-weight: 300; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media (max-width: 880px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0e0e0d;
}
.project-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.project-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(0%) brightness(0.92);
}
.project-card:hover .project-card__img { transform: scale(1.05); filter: brightness(1); }
.project-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
}
.project-card__body {
  position: absolute; left: 32px; right: 32px; bottom: 32px;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: white;
}
.project-card__num {
  position: absolute; top: 24px; left: 28px;
  font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.85);
}
.project-card__status {
  position: absolute; top: 24px; right: 28px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(255,255,255,0.95); color: var(--color-ink);
  padding: 6px 12px; border-radius: 999px; font-weight: 600;
}
.project-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.project-card__loc {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: 18px; margin-top: 6px; opacity: 0.85;
}
.project-card__arrow {
  width: 56px; height: 56px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  flex-shrink: 0;
}
.project-card:hover .project-card__arrow { background: white; border-color: white; }
.project-card__arrow svg { transition: transform 0.4s var(--ease), stroke 0.3s var(--ease); }
.project-card:hover .project-card__arrow svg { stroke: var(--color-ink); transform: translate(2px, -2px); }

/* PILLARS / WHY ------------------------------------------------------------*/
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
@media (max-width: 880px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar {
  padding: 48px 28px;
  border-right: 1px solid var(--color-line);
}
.pillar:last-child { border-right: none; }
@media (max-width: 880px) {
  .pillar:nth-child(2n) { border-right: none; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--color-line); }
}
.pillar__num { font-size: 11px; color: var(--color-mute); letter-spacing: 0.18em; font-weight: 600; }
.pillar__title { margin-top: 20px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.pillar__desc { margin-top: 14px; font-size: 14px; color: var(--color-ink-soft); line-height: 1.6; }

/* TEAM --------------------------------------------------------------------- */
.team__head { text-align: center; max-width: 800px; margin: 0 auto 70px; }
.team__title { font-size: clamp(36px, 5vw, 72px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.team__title em { font-family: var(--font-serif); font-style: italic; font-weight: 300; }
.team__sub { margin-top: 18px; color: var(--color-ink-soft); font-size: 16px; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }

.team-card__photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #2a2a28 0%, #4a4a47 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
}
.team-card__photo-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(120px, 18vw, 240px);
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.04em;
}
.team-card__role {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-mute); margin-bottom: 8px; font-weight: 600;
}
.team-card__name { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.team-card__bio { margin-top: 18px; }
.team-card__bio li {
  list-style: none;
  padding: 12px 0 12px 22px;
  position: relative;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-ink-soft);
  border-bottom: 1px solid var(--color-line);
}
.team-card__bio li:last-child { border-bottom: none; }
.team-card__bio li::before {
  content: '';
  position: absolute; left: 0; top: 22px;
  width: 8px; height: 1px; background: var(--color-ink);
}
.team-card__bio strong { color: var(--color-ink); font-weight: 600; }

/* FOOTER / CONTACT --------------------------------------------------------- */
.footer { background: var(--color-ink); color: var(--color-bg); padding: clamp(80px, 10vw, 140px) 0 40px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 80px;
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

.footer__title {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.footer__title em { font-family: var(--font-serif); font-style: italic; font-weight: 300; }
.footer__sub { color: rgba(255,255,255,0.7); margin-top: 18px; max-width: 30ch; }

.footer h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 20px; font-weight: 600; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; font-size: 14px; }
.footer li a, .footer__big-link { color: rgba(255,255,255,0.85); transition: color 0.25s var(--ease); }
.footer li a:hover, .footer__big-link:hover { color: white; }

.footer__big-link {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__big-link svg { flex-shrink: 0; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
  font-size: 12px; color: rgba(255,255,255,0.55);
}

/* WHATSAPP FLOAT ----------------------------------------------------------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25d366; color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  z-index: 40;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 36px rgba(0,0,0,0.25); }
.wa-float svg { width: 28px; height: 28px; }

/* PROJECT PAGE ------------------------------------------------------------- */
.project-hero {
  min-height: 92vh;
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) 60px;
  color: white;
  overflow: hidden;
}
.project-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.project-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 16%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.65) 100%);
}
.project-hero__content { position: relative; z-index: 2; max-width: 1100px; }
.project-hero__address { display: flex; gap: 14px; margin-bottom: 28px; align-items: center; }
.project-hero__address .eyebrow { color: rgba(255,255,255,0.85); }
.project-hero__address .badge {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}
.project-hero__title {
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 800;
  line-height: 0.86; letter-spacing: -0.04em;
}
.project-hero__sub {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2.6vw, 36px); margin-top: 18px;
  color: rgba(255,255,255,0.95); max-width: 30ch;
}
.project-hero__stats {
  margin-top: 50px;
  display: grid; grid-template-columns: repeat(4, auto); gap: 50px;
}
@media (max-width: 720px) { .project-hero__stats { grid-template-columns: repeat(2, auto); gap: 28px; } }
.stat { color: white; }
.stat__num { font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.02em; }
.stat__label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 6px; font-weight: 500; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.split--reverse { grid-template-columns: 1.2fr 1fr; }
.split--reverse .split__media { order: -1; }
@media (max-width: 880px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__title { font-size: clamp(32px, 4.8vw, 64px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 24px; }
.split__title em { font-family: var(--font-serif); font-style: italic; font-weight: 300; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery__item { overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--full { grid-column: span 12; aspect-ratio: 21/9; }
.gallery__item--half { grid-column: span 6; aspect-ratio: 4/3; }
.gallery__item--third { grid-column: span 4; aspect-ratio: 3/4; }
.gallery__item--two-thirds { grid-column: span 8; aspect-ratio: 3/2; }
@media (max-width: 880px) {
  .gallery__item--half, .gallery__item--third, .gallery__item--two-thirds { grid-column: span 12; }
}

/* AMENITIES ROW ------------------------------------------------------------*/
.amenities-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  margin-top: 40px;
}
@media (max-width: 720px) { .amenities-list { grid-template-columns: 1fr 1fr; } }
.amenity {
  background: var(--color-bg);
  padding: 32px 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.amenity__icon { width: 32px; height: 32px; color: var(--color-leaf); }
.amenity__name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.amenity__note { font-size: 13px; color: var(--color-mute); }

/* UNITS TABLE -------------------------------------------------------------- */
.units {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: 2px;
  overflow: hidden;
}
.units__filters {
  padding: 24px 28px;
  border-bottom: 1px solid var(--color-line);
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.unit-pill {
  padding: 8px 16px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  background: var(--color-bg-alt);
  color: var(--color-ink);
}
.unit-pill:hover { border-color: var(--color-ink); }
.unit-pill.is-active { background: var(--color-ink); color: var(--color-bg-alt); border-color: var(--color-ink); }
.unit-pill__count { color: var(--color-mute); margin-left: 4px; }
.unit-pill.is-active .unit-pill__count { color: rgba(255,255,255,0.6); }

.units__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.units__table th, .units__table td {
  text-align: left;
  padding: 16px 28px;
  border-bottom: 1px solid var(--color-line);
}
.units__table th {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--color-mute);
  background: #fafaf7;
}
.units__table td { color: var(--color-ink); font-weight: 400; }
.units__table tbody tr { transition: background 0.2s var(--ease); }
.units__table tbody tr:hover { background: #fafaf7; }
.units__table tbody tr:last-child td { border-bottom: none; }
.unit-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
}
.unit-status--available { background: #e9f0e0; color: var(--color-leaf); }
.unit-status--reserved { background: #fff3d6; color: #8a6f00; }
.unit-status--sold { background: #f0eee8; color: var(--color-mute); }

/* Skeleton de carga: filas placeholder mientras llega el CSV */
.unit-skeleton td { padding: 18px 16px; }
.skel-cell {
  display: inline-block;
  height: 12px;
  background: linear-gradient(90deg, #e8e6e0 0%, #f1efe9 50%, #e8e6e0 100%);
  background-size: 200% 100%;
  border-radius: 3px;
  animation: skel-pulse 1.4s ease-in-out infinite;
  vertical-align: middle;
}
.skel-cell--xs { width: 32px; }
.skel-cell--sm { width: 64px; }
.skel-cell--md { width: 120px; }
@keyframes skel-pulse {
  0%   { background-position: 200% 0; opacity: 0.7; }
  50%  { opacity: 1; }
  100% { background-position: -200% 0; opacity: 0.7; }
}

/* PAYMENT PLANS ------------------------------------------------------------*/
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  padding: 36px 30px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.plan:hover { border-color: var(--color-ink); transform: translateY(-3px); }
.plan--feat { background: var(--color-ink); color: var(--color-bg-alt); border-color: var(--color-ink); }
.plan--feat .plan__name, .plan--feat .plan__detail strong { color: white; }
.plan--feat .plan__detail { color: rgba(255,255,255,0.7); }
.plan__tag { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-mute); font-weight: 600; }
.plan--feat .plan__tag { color: rgba(255,255,255,0.55); }
.plan__name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; line-height: 1.15; }
.plan__detail { color: var(--color-ink-soft); font-size: 14px; margin-top: 16px; line-height: 1.6; }
.plan__detail strong { color: var(--color-ink); font-weight: 600; }

/* PROJECT NAV (CTA AT END OF PAGE) ----------------------------------------- */
.proj-cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
@media (max-width: 720px) { .proj-cta { grid-template-columns: 1fr; } }
.proj-cta__item {
  padding: 48px var(--gutter);
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.3s var(--ease);
  border-right: 1px solid var(--color-line);
}
.proj-cta__item:last-child { border-right: none; }
.proj-cta__item:hover { background: var(--color-ink); color: var(--color-bg); }
.proj-cta__item:hover .proj-cta__title { color: white; }
.proj-cta__label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-mute); }
.proj-cta__item:hover .proj-cta__label { color: rgba(255,255,255,0.55); }
.proj-cta__title { font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.025em; }
.proj-cta__arrow { margin-top: 12px; }

/* REVEAL ANIMATIONS -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal--up { transform: translateY(40px); }
.reveal--right { transform: translateX(-30px); }
.reveal.in-view.reveal--right { transform: translateX(0); }
.reveal-stagger > .reveal { transition-delay: calc(var(--i, 0) * 100ms); }

/* MOBILE TWEAKS ----------------------------------------------------------- */
@media (max-width: 720px) {
  .units__table th, .units__table td { padding: 12px 18px; font-size: 13px; }
  .units__table th:nth-child(4), .units__table td:nth-child(4),
  .units__table th:nth-child(5), .units__table td:nth-child(5) { display: none; }
  .intro { grid-template-columns: 1fr; }
  .intro__label { position: static; }
  .hero__top-meta { display: none; }
  .pillar { padding: 32px 22px; }
}

/* ABOUT PAGE EXTRAS ------------------------------------------------------- */
.about-hero {
  padding: 180px var(--gutter) 80px;
  background: var(--color-bg);
}
.about-hero__title {
  font-size: clamp(56px, 10vw, 160px);
  font-weight: 800;
  line-height: 0.9; letter-spacing: -0.04em;
}
.about-hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 300; }
.about-hero__lede {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2.8vw, 36px);
  margin-top: 30px; max-width: 28ch;
  color: var(--color-ink-soft);
}

.studio-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  padding-block: clamp(60px, 8vw, 120px);
  border-top: 1px solid var(--color-line);
}
@media (max-width: 880px) { .studio-block { grid-template-columns: 1fr; } }
.studio-block__num {
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: clamp(80px, 12vw, 200px);
  color: var(--color-stone);
  line-height: 0.8;
  letter-spacing: -0.04em;
}
.studio-block__name { font-size: clamp(36px, 5vw, 72px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.0; margin-top: 24px; }
.studio-block__logo {
  display: flex;
  width: clamp(110px, 13vw, 150px);
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 28px;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}
.studio-block__logo:hover { border-color: var(--color-ink); transform: translateY(-2px); }
.studio-block__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.studio-block__logo--dark { background: #1a1a18; border-color: #1a1a18; }
.studio-block__logo--cream { background: #faf8f3; }
.studio-block__role { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-mute); font-weight: 600; }
.studio-block__desc p { margin-bottom: 18px; max-width: 50ch; }
.studio-block__list { list-style: none; margin-top: 28px; border-top: 1px solid var(--color-line); }
.studio-block__list li { padding: 14px 0; border-bottom: 1px solid var(--color-line); display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.studio-block__list li strong { font-weight: 600; }
.studio-block__list li span { color: var(--color-mute); }

/* PROJECTS INDEX ---------------------------------------------------------- */
.proj-index { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--color-line); }
.proj-index-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr 1fr auto;
  gap: 30px;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-line);
  align-items: center;
  transition: padding 0.3s var(--ease);
}
.proj-index-row:hover { padding-inline: 20px; background: rgba(0,0,0,0.02); }
@media (max-width: 880px) {
  .proj-index-row { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
}
.proj-index-row__num { font-family: var(--font-serif); font-style: italic; color: var(--color-mute); font-size: 18px; }
.proj-index-row__name { font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.proj-index-row__loc { color: var(--color-ink-soft); font-size: 14px; }
.proj-index-row__status { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-mute); font-weight: 600; }

/* CONTACT PAGE ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 100px);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-method {
  display: flex; gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-line);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: padding 0.3s var(--ease);
}
.contact-method:hover { padding-inline: 12px; background: rgba(0,0,0,0.02); }
.contact-method__icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-ink); color: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-method__label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-mute); }
.contact-method__value { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-top: 4px; }
.contact-method__arrow { margin-left: auto; }
