/* ============================================================
   GUARO PROJECT — design system
   Scandi-editorial: bone white, ink, clay accent.
   Urbanist (var) + Cormorant italic accents. No frameworks.
   ============================================================ */

/* ---------- Fonts (self-hosted, latin subsets) ---------- */
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  /* optional, not swap: the file is preloaded and same-origin so it lands in the
     block period virtually always, and if it ever does not there is no reflow.
     swap reflowed the oversized numerals on descargas.html. */
  font-display: optional;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-500i.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: optional;
}

/* Metric-matched fallback. Measured against Urbanist at 100px: Urbanist is 96.9%
   of Arial's width with a 120px line box vs Arial's 115px. Without this the swap
   reflowed the oversized download numerals (CLS 0.158 on descargas.html). */
@font-face {
  font-family: "Urbanist Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 96.9%;
  ascent-override: 100%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #F7F1E6;
  --surface: #F0E7D8;
  --surface-2: #E8DCC9;
  --line: #E2D8C5;
  --ink: #191B1A;
  --ink-soft: #3A3D3A;
  --muted: #5F625D;
  --clay: #9A5B3C;
  --clay-ink: #7E4830;      /* text-safe accent */
  --clay-soft: #C9A188;
  --ok: #3E6B4F;
  --warn: #8A6D2F;
  --bad: #8A3B3B;

  --font-sans: "Urbanist", "Urbanist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Cormorant", Georgia, serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.4rem);
  --step-4: clamp(2.8rem, 2rem + 4vw, 5.4rem);
  --step-5: clamp(3.4rem, 2.2rem + 6.5vw, 7.5rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: clamp(4.5rem, 3.5rem + 5vw, 8rem);

  --container: 1200px;
  --container-wide: 1440px;
  --radius: 2px;

  --z-header: 50;
  --z-nav: 60;
  --z-dialog: 70;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* El atributo hidden gana siempre. Sin esto, cualquier elemento con un display
   propio en el CSS sigue viendose aunque el JS le ponga hidden: es lo que pasaba
   con el formulario de contacto (.form-grid tiene display:grid), que se quedaba
   en pantalla debajo del "¡Gracias!" con el boton congelado en "Enviando...". */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 var(--space-2); font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 var(--space-2); max-width: 62ch; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--clay-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--clay-ink);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 0.75rem 1.25rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Type utilities ---------- */
.eyebrow {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay-ink);
  margin-bottom: var(--space-2);
}
.display {
  font-size: var(--step-5);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.display .accent, .h-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}
h1, .h1 { font-size: var(--step-4); }
h2, .h2 { font-size: var(--step-3); }
h3, .h3 { font-size: var(--step-2); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* Understated underline CTA (signature of the reference) */
.link-line {
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--clay);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link-line:hover { color: var(--clay-ink); border-color: var(--clay-ink); }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.9rem;
  background: var(--ink); color: var(--bg);
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: var(--step-0);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-clay { background: var(--clay-ink); border-color: var(--clay-ink); }
.btn-clay:hover { background: transparent; color: var(--clay-ink); }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }
.container-wide { width: min(var(--container-wide), 100% - 2rem); margin-inline: auto; }
.section { padding-block: var(--space-6); }
.section-tight { padding-block: var(--space-5); }

.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .split > .order-first { order: -1; }
}

/* Overlapping collage (signature) */
.collage { position: relative; }
.collage .img-a {
  width: 78%;
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
}
.collage .img-b {
  position: absolute;
  width: 52%;
  right: 0;
  bottom: -14%;
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
  box-shadow: 0 30px 60px -30px rgba(25, 27, 26, 0.35);
}
.collage.flip .img-a { margin-left: auto; }
.collage.flip .img-b { right: auto; left: 0; }
@media (max-width: 899px) {
  .collage { margin-bottom: var(--space-4); }
  .collage .img-b { bottom: -10%; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.site-header.scrolled {
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em;
  text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 0.15em;
}
.brand .accent { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--clay-ink); }
.header-on-hero:not(.scrolled) .brand,
.header-on-hero:not(.scrolled) .nav-cta,
.header-on-hero:not(.scrolled) .nav-toggle { color: #fff; }
.header-on-hero:not(.scrolled) .brand .accent { color: var(--clay-soft); }

.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.nav-cta {
  font-size: var(--step--1); letter-spacing: 0.02em;
  font-weight: 600; text-decoration: none; color: var(--ink);
  padding: 0.5rem 0.25rem; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.nav-cta:hover { border-color: currentColor; }
.lang-switch { display: inline-flex; gap: 0.15rem; align-items: center; font-size: var(--step--1); font-weight: 600; }
/* Explicit colours rather than opacity: opacity-dimmed ink fell to 3.82:1 on the
   bone header, and inherited the wrong base colour over dark heroes. */
.lang-switch a, .lang-switch span {
  text-decoration: none; color: var(--muted);
  padding: 0.35rem 0.35rem; min-height: 44px; display: inline-flex; align-items: center;
}
.lang-switch [aria-current] { color: var(--ink); border-bottom: 1.5px solid var(--clay); }
.lang-switch a:hover { color: var(--ink); }
.header-on-hero:not(.scrolled) .lang-switch a,
.header-on-hero:not(.scrolled) .lang-switch span { color: rgba(255, 255, 255, 0.82); }
.header-on-hero:not(.scrolled) .lang-switch [aria-current],
.header-on-hero:not(.scrolled) .lang-switch a:hover { color: #fff; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px;
  background: none; border: 0; color: var(--ink);
}
@media (max-width: 640px) {
  .header-actions { gap: 0.75rem; }
  .header-actions .nav-cta { display: none; }
  .brand { font-size: 1.1rem; }
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }

/* ---------- Desktop horizontal nav ----------
   The reference site hides all of its navigation behind a hamburger even on a
   1440px desktop. Copying that was the review's sharpest structural criticism,
   so from 1024px the main sections sit in the bar and the toggle disappears. */
.desktop-nav { display: none; }
@media (min-width: 1024px) {
  .desktop-nav {
    display: flex; align-items: center; gap: 2rem;
    margin-left: auto; margin-right: 2rem;
  }
  .desktop-nav a {
    text-decoration: none; color: var(--ink);
    font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em;
    padding: 0.5rem 0; min-height: 44px; display: inline-flex; align-items: center;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  }
  .desktop-nav a:hover { border-color: currentColor; }
  .desktop-nav a[aria-current="page"] { border-color: var(--clay); }
  .header-on-hero:not(.scrolled) .desktop-nav a { color: rgba(255, 255, 255, 0.88); }
  .header-on-hero:not(.scrolled) .desktop-nav a:hover,
  .header-on-hero:not(.scrolled) .desktop-nav a[aria-current="page"] { color: #fff; }
  /* The drawer still exists for the full list; the button is simply not needed here. */
  .nav-toggle { display: none; }
  .header-actions { gap: 1.25rem; }
}

/* Off-canvas nav */
.nav-panel {
  position: fixed; inset: 0 0 0 auto;
  width: min(420px, 92vw);
  background: var(--ink); color: var(--bg);
  z-index: var(--z-nav);
  transform: translateX(102%);
  transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
  visibility: hidden;
}
.nav-panel.open { transform: translateX(0); visibility: visible; }
.nav-panel .close-nav {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: none; border: 0; color: var(--bg);
  width: 48px; height: 48px; font-size: 1.5rem; line-height: 1;
}
.nav-panel nav a {
  display: block;
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--bg);
  text-decoration: none;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(250, 249, 247, 0.12);
  transition: color 0.2s var(--ease), transform 0.25s var(--ease);
}
.nav-panel nav a:hover { color: var(--clay-soft); transform: translateX(0.5rem); }
.nav-panel nav a[aria-current="page"] { color: var(--clay-soft); }
.nav-panel .nav-meta { margin-top: var(--space-3); font-size: var(--step--1); color: rgba(250, 249, 247, 0.6); }
.nav-panel .nav-meta a { color: var(--bg); }
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(25, 27, 26, 0.45);
  z-index: calc(var(--z-nav) - 1);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.nav-backdrop.show { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;   /* fallback for browsers without svh */
  min-height: 100svh;
  display: grid; place-items: end start;
  isolation: isolate;
  color: #fff;
}
.hero .hero-media { position: absolute; inset: 0; z-index: -2; }
.hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(20, 21, 20, 0.5), rgba(20, 21, 20, 0) 26%),
    linear-gradient(to top, rgba(20, 21, 20, 0.74) 0%, rgba(20, 21, 20, 0.3) 45%, rgba(20, 21, 20, 0.16) 100%);
}
.hero-inner { padding-block: var(--space-5) var(--space-4); }
.hero .chip {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.45rem 1.1rem; border-radius: 999px;
  font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  margin-bottom: var(--space-3);
}
.hero .display { margin: 0 0 var(--space-2); text-wrap: balance; }
  /* Round 3: title alone on the render - one line, a bit bigger, sitting lower. */
  .hero .hero-title { font-size: clamp(3rem, 2rem + 6.8vw, 8.2rem); margin: 0; }
  .hero .hero-inner { padding-block: var(--space-5) var(--space-3); }
  /* On phones the browser chrome can cover the bottom edge - lift the title clear of it. */
  @media (max-width: 760px) {
    .hero .hero-inner { padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px) + 2.75rem); }
  }
.hero .hero-sub { font-size: var(--step-1); max-width: 34ch; color: rgba(255, 255, 255, 0.88); }
.hero-scroll {
  position: absolute; right: 2rem; bottom: 2rem;
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8); font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
}
.hero-scroll .line { width: 1px; height: 52px; background: currentColor; animation: drop 2s var(--ease) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) { .hero-scroll { display: none; } }

/* Page hero (interior pages) */
.page-hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: 52svh; display: grid; place-items: end start;
}
.page-hero.tall { min-height: 68svh; }
.page-hero .hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(20, 21, 20, 0.5), rgba(20, 21, 20, 0) 32%),
    linear-gradient(to top, rgba(20, 21, 20, 0.7), rgba(20, 21, 20, 0.2));
}
.page-hero .hero-inner { padding-block: var(--space-4) var(--space-4); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
}
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat .num {
  display: block;
  font-size: var(--step-3); font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat .label { display: block; color: var(--muted); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.45rem; }

/* ---------- Feature cards ---------- */
.cards {
  display: grid; gap: var(--space-3);
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) {
  .cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2);
    margin-inline: calc((100vw - min(var(--container), 100vw - 3rem)) / -2);
    padding-inline: calc((100vw - min(var(--container), 100vw - 3rem)) / 2);
  }
  .cards > * { scroll-snap-align: start; }
}
.card { text-decoration: none; color: inherit; display: block; }
.card .card-media { overflow: hidden; outline: 1px solid rgba(0, 0, 0, 0.08); outline-offset: -1px; aspect-ratio: 4 / 3; }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card h3 { font-size: var(--step-1); margin: var(--space-2) 0 0.35rem; }
.card p { color: var(--muted); font-size: var(--step--1); margin: 0; }

/* ---------- Chips / tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-3); }
.chip-tag {
  border: 1px solid var(--line); background: var(--surface);
  padding: 0.45rem 1rem; border-radius: 999px;
  font-size: var(--step--1); color: var(--ink-soft);
}

/* ---------- Marquee (ghost text divider) ---------- */
.marquee {
  overflow: hidden; white-space: nowrap; user-select: none;
  padding-block: var(--space-3);
  border-block: 1px solid var(--line);
}
.marquee .track { display: inline-flex; gap: 4rem; animation: marquee 38s linear infinite; will-change: transform; }
.marquee span {
  font-size: var(--step-5); font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(25, 27, 26, 0.3);
  paint-order: stroke;
}
.marquee span i { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee.on-media { border: 0; position: absolute; inset: auto 0 8%; z-index: 2; }
.marquee.on-media span { -webkit-text-stroke-color: rgba(255, 255, 255, 0.55); }

/* ---------- Statement ---------- */
.statement { text-align: center; }
.statement .h2 { max-width: 24ch; margin-inline: auto; text-wrap: balance; }
.statement .link-line { margin-top: var(--space-2); font-size: var(--step-1); }

/* ---------- Full bleed media ---------- */
.bleed { position: relative; }
.bleed img { width: 100%; height: clamp(340px, 60vh, 640px); object-fit: cover; }

/* ---------- Unit cards ---------- */
.units { display: grid; gap: var(--space-4); }
@media (min-width: 820px) { .units { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .units-3 { grid-template-columns: repeat(3, 1fr); } }
.unit-card .card-media picture { display: block; width: 100%; height: 100%; }
.unit-card .unit-count { font-size: var(--step--1); color: var(--muted); white-space: nowrap; }
/* In the 3-up grid the card is narrow enough that the title wraps, so the
   baseline-aligned count crowds it. Stack them instead. */
.units.units-3 .unit-meta { display: block; }
.units.units-3 .unit-count { display: block; margin-top: 0.45rem; }
.units.units-3 .unit-sub { margin-top: 0.35rem; }

/* ---------- Typographic fact grid ----------
   Replaces the four gradient placeholder cards in "El entorno". We have no real
   photography of Guaro, and an abstract gradient block reads worse than no image
   at all on a page whose other imagery is genuine renders. */
.fact-grid {
  display: grid; gap: var(--space-4) var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  margin-top: var(--space-4);
}
.fact { border-top: 1px solid var(--ink); padding-top: var(--space-2); }
.fact .fact-n {
  display: block; font-size: var(--step--1); letter-spacing: 0.14em;
  color: var(--clay); font-variant-numeric: tabular-nums; margin-bottom: 0.8rem;
}
.fact h3 { margin: 0 0 0.5rem; font-size: var(--step-1); }
.fact p { margin: 0; color: var(--muted); }

/* Full-bleed terrace: on desktop, crop the frame lower so the chairs and the
   valley carry the image instead of the ceiling (promoter request). */
.bleed.bleed-crop img { width: 100%; }
@media (min-width: 900px) {
  .bleed.bleed-crop img { height: 68vh; object-fit: cover; object-position: center 76%; }
}

/* ---------- Slideshow ("que pasen en plan slideshow") ---------- */
.slideshow { position: relative; max-width: 1000px; margin-top: var(--space-4); }
.slideshow .slides { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
@media (min-width: 760px) { .slideshow .slides { aspect-ratio: 3 / 2; } }
.slideshow .slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.65s var(--ease);
}
.slideshow .slide[data-active] { opacity: 1; z-index: 1; }
.slideshow .slide picture, .slideshow .slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.slideshow .ss-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(247, 241, 230, 0.92); color: var(--ink);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease);
}
.slideshow .ss-nav:hover { background: #fff; }
.slideshow .ss-nav:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.slideshow .ss-prev { left: 0.9rem; }
.slideshow .ss-next { right: 0.9rem; }
.slideshow .ss-dots {
  display: flex; gap: 0.6rem; justify-content: center; margin-top: var(--space-2);
}
.slideshow .ss-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line); cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.slideshow .ss-dots button[aria-current="true"] { background: var(--clay); transform: scale(1.25); }
@media (max-width: 600px) { .slideshow .ss-nav { width: 42px; height: 42px; } }

/* ---------- Editorial gallery flow (galeria.html) ----------
   The promoter: "no quiero una página con todas iguales, una pegada al lado de
   la otra" - so an asymmetric 12-column flow with staggered pairs and the
   occasional full-width breath, not a uniform grid. */
.gallery.gallery-flow { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-3); }
.gallery-flow button { aspect-ratio: 4 / 3; grid-column: 1 / -1; }
.gallery-flow button picture, .gallery-flow button img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery-flow .gf-wide { aspect-ratio: 21 / 9; }
@media (min-width: 760px) {
  .gallery-flow .gf-a { grid-column: 1 / 9; }
  .gallery-flow .gf-b { grid-column: 9 / 13; margin-top: var(--space-5); }
  .gallery-flow .gf-c { grid-column: 1 / 6; margin-top: var(--space-4); }
  .gallery-flow .gf-d { grid-column: 6 / 13; }
  .gallery-flow .gf-e { grid-column: 1 / 7; }
  .gallery-flow .gf-f { grid-column: 7 / 13; margin-top: var(--space-5); }
  .gallery-flow .gf-g { grid-column: 1 / 5; margin-top: var(--space-4); }
  .gallery-flow .gf-h { grid-column: 5 / 13; }
}

/* Six facts, two even rows of three from tablet width up. */
@media (min-width: 900px) {
  .fact-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-3); }
  .fact h3 { font-size: var(--step-0); }
  .fact p { font-size: var(--step--1); }
}

/* "Un hogar para cada estilo": text and slideshow centred as a set. */
#estilos .measure-wide { margin-inline: auto; text-align: center; }
#estilos .measure-wide > * { margin-inline: auto; }
#estilos .slideshow { margin-inline: auto; }

/* A single editorial column where a two-up split used to sit. */
.container.measure-wide > * { max-width: 72ch; }

.unit-card { position: relative; display: block; text-decoration: none; color: inherit; }
.unit-card .card-media { aspect-ratio: 4 / 3; overflow: hidden; outline: 1px solid rgba(0, 0, 0, 0.08); outline-offset: -1px; }
.unit-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.unit-card:hover .card-media img { transform: scale(1.045); }
.unit-card .unit-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: var(--space-2); }
.unit-card h3 { margin: 0; font-size: var(--step-2); }
.unit-card .unit-sub { color: var(--muted); margin-top: 0.3rem; }
.unit-card .price { font-weight: 700; white-space: nowrap; }
.unit-card .tag {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(250, 249, 247, 0.92); color: var(--ink);
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 999px;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  padding: var(--space-2) 0 var(--space-3);
}
.filter-btn {
  border: 1.5px solid var(--line); background: transparent; color: var(--ink-soft);
  padding: 0.55rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: var(--step--1);
  min-height: 44px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- Grid gallery ---------- */
.gallery { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery.gallery-3 { grid-template-columns: repeat(3, 1fr); } }
.gallery.gallery-1 { grid-template-columns: 1fr; max-width: 60rem; }
.gallery button picture { display: block; width: 100%; height: 100%; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.gallery button {
  position: relative;
  padding: 0; border: 0; background: none; overflow: hidden; aspect-ratio: 4 / 3;
  outline: 1px solid rgba(0, 0, 0, 0.08); outline-offset: -1px;
  cursor: zoom-in;
}
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
/* per-image unit badge (markup, not baked into the render) */
.gallery .u-badge {
  position: absolute; top: 0.55rem; right: 0.55rem;
  min-width: 26px; height: 26px; padding: 0 0.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(25, 27, 26, 0.82); color: #fff;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em;
  border-radius: 3px;
}

/* ---------- Typology block ---------- */
.typology { scroll-margin-top: 130px; }
.typology + .typology { margin-top: var(--space-6); }
.typology .ty-head { margin-bottom: var(--space-3); }
.typology .ty-head h2 { margin-bottom: 0.35rem; }
.typology .ty-floor { color: var(--muted); font-size: var(--step-0); }
.typology .ty-floor::before { content: "> "; color: var(--clay-ink); }
.keyplan-wrap { margin-top: var(--space-3); }
.keyplan-wrap img { width: 100%; background: #fff; outline: 1px solid rgba(0,0,0,.08); outline-offset: -1px; }
.keyplan-wrap figcaption { margin-top: 0.6rem; font-size: var(--step--1); color: var(--muted); }
dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw);
}
dialog.lightbox::backdrop { background: rgba(20, 21, 20, 0.88); }
dialog.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; }
dialog.lightbox.zoomable { max-width: min(1400px, 96vw); }
dialog.lightbox.zoomable img { cursor: zoom-in; background: #fff; }
dialog.lightbox.zoomable img.is-zoomed {
  cursor: zoom-out;
  max-height: none; width: 200%; max-width: none;
}
dialog.lightbox.zoomable .lb-hint {
  display: block; text-align: center; color: rgba(255,255,255,.75);
  font-size: var(--step--1); margin-top: 0.6rem;
}
dialog.lightbox .lb-hint { display: none; }

/* Lightbox gallery controls: a ten-image set should not mean ten open/close cycles. */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(247, 241, 230, 0.92); color: var(--ink);
  font-size: 2rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease);
}
.lb-nav:hover { background: #fff; }
.lb-nav:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.lb-prev { left: clamp(0.5rem, 3vw, 2rem); }
.lb-next { right: clamp(0.5rem, 3vw, 2rem); }
.lb-count {
  position: absolute; bottom: clamp(0.75rem, 3vw, 1.75rem); left: 50%; transform: translateX(-50%);
  color: rgba(250, 249, 247, 0.92); font-size: var(--step--1);
  font-variant-numeric: tabular-nums; letter-spacing: 0.08em;
}
@media (max-width: 600px) { .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; } }
dialog.lightbox.zoomable { overflow: auto; }
dialog.lightbox .close-lb {
  position: absolute; top: -0.25rem; right: 0; transform: translateY(-100%);
  background: none; border: 0; color: #fff; font-size: 2rem; width: 48px; height: 48px;
}

/* ---------- Unit explorer: sticky index + plans ---------- */
.unit-explorer { display: grid; gap: var(--space-3); align-items: start; }
@media (min-width: 960px) {
  .unit-explorer { grid-template-columns: minmax(230px, 300px) 1fr; gap: var(--space-5); }
}

.unit-index { list-style: none; margin: 0; padding: 0; }
@media (min-width: 960px) {
  .unit-index { position: sticky; top: 120px; }
}
.unit-index li + li { margin-top: 0.35rem; }
.unit-index a {
  display: block; text-decoration: none; color: var(--muted);
  padding: 0.7rem 0 0.7rem 1rem;
  border-left: 2px solid var(--line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.unit-index a:hover { color: var(--ink); border-color: var(--clay-soft); }
.unit-index .u-name { display: block; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.unit-index .u-spec { display: block; font-size: var(--step--1); margin-top: 0.15rem; }
.unit-index .u-status { font-size: var(--step--1); font-weight: 600; }
.unit-index a[aria-current="true"] {
  color: var(--ink); border-color: var(--clay); border-left-width: 3px;
}
.unit-index a[aria-current="true"] .u-name { color: var(--ink); }

/* Horizontal chip index on mobile */
@media (max-width: 959px) {
  .unit-index {
    display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.5rem;
    position: sticky; top: 64px; z-index: 20;
    background: var(--bg); box-shadow: 0 1px 0 var(--line);
    scrollbar-width: none;
  }
  .unit-index::-webkit-scrollbar { display: none; }
  .unit-index li + li { margin-top: 0; }
  .unit-index a {
    border-left: 0; border: 1.5px solid var(--line); border-radius: 999px;
    padding: 0.55rem 1.1rem; white-space: nowrap; min-height: 44px;
    display: flex; align-items: center;
  }
  .unit-index a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
  .unit-index a[aria-current="true"] .u-name { color: var(--bg); }
  .unit-index .u-name { font-size: var(--step-0); }
  .unit-index .u-spec { display: none; }
}

.unit-plan { scroll-margin-top: 140px; }
.unit-plan + .unit-plan { margin-top: var(--space-5); }
.unit-plan .plan-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.75rem; margin-bottom: var(--space-2);
}
.unit-plan .plan-head h3 { margin: 0; font-size: var(--step-2); }
.unit-plan .plan-head .price { font-weight: 700; white-space: nowrap; }
.plan-figure { margin: 0; position: relative; }
.plan-zoom {
  display: block; width: 100%; padding: 0; border: 0; background: #fff;
  outline: 1px solid rgba(0, 0, 0, 0.08); outline-offset: -1px;
  cursor: zoom-in;
}
.plan-zoom img { width: 100%; display: block; }
.plan-figure figcaption {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center;
  margin-top: 0.75rem; font-size: var(--step--1); color: var(--muted);
}
.plan-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: var(--space-2); }

/* ---------- Legacy plan block (kept for simple pages) ---------- */
.plan-block { display: grid; gap: var(--space-3); align-items: start; }
@media (min-width: 900px) { .plan-block { grid-template-columns: 1.4fr 1fr; } }
.plan-block .plan-img { border: 1px solid var(--line); background: #fff; }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.spec-table th, .spec-table td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); }
.spec-table th { font-weight: 600; color: var(--muted); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; }
.spec-table td:last-child, .spec-table th:last-child { text-align: right; }
.spec-table tfoot td { font-weight: 700; border-bottom: 0; }

/* ---------- Price table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
/* overflow-x:auto silently sets overflow-y:auto, which makes this element the sticky
   containing block and stops the thead ever sticking to the viewport. Clip vertically
   so only the horizontal scroll survives. */
@supports (overflow-y: clip) { .table-wrap { overflow-y: clip; } }
.price-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.price-table th, .price-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th {
  z-index: 2;
  background: var(--surface); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  position: sticky; top: 0;
}
.price-table td.num, .price-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: var(--step--1); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.status.bad { color: var(--bad); }

/* Floor group headings inside the price table. The floor is named once, here,
   which is why no per-row "Planta" column exists. */
.price-table .row-group th {
  background: var(--ink); color: var(--bg);
  font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; padding: 0.7rem 1rem; position: static;
}
.price-table .row-group .row-group-n {
  margin-left: 0.75rem; opacity: 0.65; letter-spacing: 0.06em; text-transform: none; font-weight: 400;
}
.price-table .row-pending th { background: var(--surface); color: var(--muted); }
.price-table td.price-pending { color: var(--muted); }
.price-table tbody tr:hover td { background: var(--surface); }
.price-cta {
  font-weight: 600; font-size: var(--step--1);
  color: var(--clay-ink); text-decoration: none;
  border-bottom: 1px solid var(--clay-soft);
}
.price-cta:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Download rows (numbered, editorial) ---------- */
.dl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dl-list li { border-bottom: 1px solid var(--line); }
.dl-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-2);
  padding: var(--space-3) 0;
  text-decoration: none; color: inherit;
  transition: background-color 0.25s var(--ease);
}
/* El desplazamiento del hover se hace con transform sobre el contenido, no con
   padding-left: animar padding obliga al navegador a recalcular el layout en cada
   fotograma. El fondo se queda quieto, igual que antes. */
.dl-row > * { transition: transform 0.25s var(--ease); }
.dl-row:hover { background: var(--surface); }
.dl-row:hover > * { transform: translateX(1rem); }
.dl-row h2 { margin: 0; font-size: var(--step-2); font-weight: 600; }
.dl-row--dual { cursor: default; }
.dl-row--dual:hover > * { transform: none; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 0.75rem; }
.dl-actions .link-line { font-size: var(--step--1); }
.dl-row p { margin: 0.3rem 0 0; color: var(--muted); font-size: var(--step--1); max-width: 52ch; }
.dl-row .dl-meta { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.55rem; font-size: var(--step--1); color: var(--clay-ink); font-weight: 600; }
.dl-row .dl-num {
  font-size: clamp(2.6rem, 2rem + 3.5vw, 5rem); font-weight: 700; line-height: 0.9;
  color: var(--ink); opacity: 0.55; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.dl-row:hover .dl-num { opacity: 1; color: var(--clay); }

/* ---------- Specs (memoria de calidades) ---------- */
.specs { border-top: 1px solid var(--line); }
.specs details { border-bottom: 1px solid var(--line); }
.specs summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: var(--space-2) 0; cursor: pointer; list-style: none;
  font-size: var(--step-1); font-weight: 600; min-height: 56px;
}
.specs summary::-webkit-details-marker { display: none; }
.specs summary .idx { color: var(--clay-ink); font-size: var(--step--1); letter-spacing: 0.12em; margin-right: 0.9rem; font-variant-numeric: tabular-nums; }
.specs summary .chev { flex: none; width: 22px; height: 22px; color: var(--muted); transition: transform 0.25s var(--ease); }
.specs details[open] summary .chev { transform: rotate(45deg); }
.specs .spec-body { padding: 0 0 var(--space-3); color: var(--ink-soft); }
.specs .spec-body p { max-width: 74ch; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none; gap: 0.6rem; padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(250, 249, 247, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 -1px 0 var(--line);
}
.mobile-cta a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; border-radius: 999px; text-decoration: none; font-weight: 600;
  font-size: var(--step-0);
  border: 1.5px solid var(--ink);
}
.mobile-cta .c-primary { background: var(--ink); color: var(--bg); }
.mobile-cta .c-ghost { color: var(--ink); background: transparent; }
.mobile-cta svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Freshness / credits ---------- */
.meta-strip {
  display: flex; flex-wrap: wrap; gap: 0.6rem var(--space-3);
  font-size: var(--step--1); color: var(--muted);
  padding-top: var(--space-2);
}
.credits { display: grid; gap: var(--space-2); }
@media (min-width: 760px) { .credits { grid-template-columns: repeat(3, 1fr); } }
.credit .label { display: block; font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.credit .val { font-weight: 600; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--space-2); }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); font: inherit;
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
/* Never remove the ring outright - keyboard users need to see where they are. */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--clay); outline-offset: 2px;
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.field .err { display: none; color: var(--bad); font-size: var(--step--1); margin-top: 0.3rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.field.invalid .err { display: block; }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-success {
  display: none; border: 1px solid var(--ok); color: var(--ok);
  padding: var(--space-2); font-weight: 600;
}
.form-success.show { display: block; }
.form-error-msg { color: var(--bad); font-weight: 600; font-size: var(--step--1); }
.form-error-msg[hidden] { display: none; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 0.2rem; flex: none; }

/* ---------- Download gate (lead capture before a gated file) ---------- */
dialog.gate {
  border: 0; padding: 0; border-radius: var(--radius);
  background: var(--bg); color: var(--ink);
  width: 100%; max-width: min(460px, 92vw);
}
dialog.gate::backdrop { background: rgba(20, 21, 20, 0.72); }
.gate-body { position: relative; padding: var(--space-4) var(--space-3) var(--space-3); }
.gate-body h3 { margin-top: 0; }
.gate-body > .lead { margin-bottom: 0; }
.gate-close {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 40px; height: 40px; border: 0; background: none;
  color: var(--muted); font-size: 1.8rem; line-height: 1;
}
.gate-close:hover { color: var(--ink); }
.gate-form { margin-top: var(--space-3); }

/* ---------- Contact info ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.info-list .label { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; }
.info-list a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--clay); }
.info-list a:hover { color: var(--clay-ink); }

.map-ph {
  border: 1px solid var(--line); background: var(--surface);
  aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center;
  color: var(--muted); padding: var(--space-3);
}

/* ---------- Locator map ---------- */
.locator { position: relative; display: block; }
.locator img { width: 100%; display: block; outline: 1px solid rgba(0,0,0,.08); outline-offset: -1px; }
.locator-pin {
  position: absolute; width: 26px; height: 26px; margin: -26px 0 0 -13px;
  pointer-events: none;
}
.locator-pin::before {
  content: ""; position: absolute; inset: 0;
  background: var(--clay);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 6px 14px -4px rgba(25,27,26,.5);
}
.locator-pin::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 34px; height: 12px; margin-left: -17px;
  background: radial-gradient(ellipse at center, rgba(25,27,26,.28), rgba(25,27,26,0) 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .locator-pin { animation: pin-drop .5s var(--ease) both; }
  @keyframes pin-drop { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.map-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: var(--space-2); }
.map-note { font-size: var(--step--1); color: var(--muted); margin-top: 0.6rem; }
.map-note code { font-variant-numeric: tabular-nums; }

/* ---------- Next project ---------- */
.next-project {
  position: relative; isolation: isolate; display: grid; place-items: center;
  min-height: 44svh; color: #fff; text-decoration: none; text-align: center;
}
.next-project .hero-media { position: absolute; inset: 0; z-index: -2; }
.next-project .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.next-project::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 21, 20, 0.55); transition: background 0.3s var(--ease); }
.next-project:hover::after { background: rgba(20, 21, 20, 0.4); }
.next-project .np-label { font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; }
.next-project .np-title { font-size: var(--step-4); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-4) 0 var(--space-3); }
.footer-row {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  align-items: center; justify-content: space-between;
}
.footer-row nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-row nav a { text-decoration: none; color: var(--ink-soft); font-size: var(--step--1); font-weight: 600; }
.footer-row nav a:hover { color: var(--clay-ink); }
.footer-tagline { font-family: var(--font-serif); font-style: italic; font-size: var(--step-1); }
.legal { margin-top: var(--space-3); font-size: 0.78rem; color: var(--muted); max-width: 90ch; line-height: 1.6; }
.credit-line { margin-top: var(--space-2); text-align: center; font-size: var(--step--1); color: var(--muted); max-width: none; }
.credit-line a { color: var(--clay-ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.34em; vertical-align: -0.2em; }
.credit-line a:hover span { text-decoration: underline; }
.credit-line .ig-glyph { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- Breadcrumb-ish backlink ---------- */
.backlink { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; color: var(--muted); font-size: var(--step--1); font-weight: 600; min-height: 44px; }
.backlink:hover { color: var(--ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee .track { animation: none; transform: none; }
  .hero-scroll .line { animation: none; }
  .dl-row > *, .dl-row:hover > * { transition: none; transform: none; }
  .card .card-media img, .unit-card .card-media img, .gallery button img { transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-panel, .hero-scroll, .marquee, .site-footer nav { display: none; }
}

/* The home a visitor picked, carried into the enquiry form. */
.unit-note {
  margin: 0 0 var(--space-2); padding: 0.85rem 1rem;
  background: var(--surface); border-left: 2px solid var(--clay);
}
.unit-note .label {
  display: block; font-size: var(--step--1); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem;
}
