/* =================================================================
   TINO — a Speedwell project in Brașov. One stylesheet, both language
   trees, mobile-first (desktop overrides live in the >=900px block).
   Visual reference: MDFiles/design/tino-design-preview.html (v3).
   Bespoke site: site.json theme_tokens:false, so every property used
   below is declared here and nothing depends on the injected block.
   ================================================================= */

:root {
  /* Theme-token allowlist names, carrying Tino's values (keeps CSS-005
     quiet and gives the chat widget the brand via --color-primary). */
  --color-bg: #f4f1e8;
  --color-surface: #fcfaf4;
  --color-text: #1a211e;
  --color-text-muted: #5b655f;
  --color-accent: #1e4b3e;
  --color-primary: #12312a;
  --font-family-base: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --container-max: 1180px;

  /* Site-specific properties. */
  --font-display: "Prata", Georgia, "Times New Roman", serif;
  --gold: #a98a4b;
  /* Speedwell family red: three roles only — the location pin, the active
     masterplan zone, the rule opening the developer band. */
  --speedwell-red: #ED1B34;
  --border: #e0dacb;
  --muted-surface: #ebe7db;
  --ink-deep: #12312a;
  --on-dark: #f0ece0;
  --on-dark-muted: #a9b5ac;
  --display-track: -.01em;
  --header-h: 72px;
  --gutter: 22px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-family-base); font-size: 16.5px; font-weight: 300; line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display); font-weight: 400; line-height: 1.08;
  letter-spacing: var(--display-track);
}
h1 { font-size: clamp(2.7rem, 10.5vw, 5.1rem); }
h2 { font-size: clamp(2rem, 6.6vw, 3.2rem); margin-bottom: 22px; }
h3 { font-size: 1.6rem; line-height: 1.2; }
strong, b { font-weight: 500; }
.kicker {
  font-family: var(--font-family-base); font-size: 10.5px; font-weight: 500; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.kicker::after { content: ""; flex: 0 0 44px; height: 1px; background: var(--gold); opacity: .5; }
.lead { font-size: 1.14rem; color: var(--color-text-muted); max-width: 58ch; line-height: 1.75; }
.note { font-size: .82rem; color: var(--color-text-muted); letter-spacing: .01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-family-base); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; padding: 16px 30px;
  border-radius: var(--radius-sm); border: 1px solid var(--color-accent);
  cursor: pointer; transition: background .28s ease, color .28s ease, border-color .28s ease, filter .28s ease;
  text-align: center; line-height: 1.3;
}
.btn--solid { background: var(--color-accent); color: #fff; }
.btn--solid:hover { background: var(--color-primary); border-color: var(--color-primary); }
.btn--ghost { background: transparent; color: var(--color-accent); }
.btn--ghost:hover { background: var(--color-accent); color: #fff; }
.btn--onDark { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn--onDark:hover { background: var(--gold); color: var(--ink-deep); }
.btn--fill { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); }
.btn--fill:hover { filter: brightness(1.08); }
.btn--sm { padding: 11px 16px; font-size: 10.5px; }
.tlink {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent); border-bottom: 1px solid var(--gold); padding-bottom: 5px; display: inline-block;
}
.tlink:hover { color: var(--color-primary); }

/* ---------- Header + endorsement lockup ----------
   Solid by default (inner pages). On a page with a .hero, script.js adds
   .is-over while the header sits over the hero, and swaps the Speedwell
   logo between the white and the dark file with it. */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(252,250,244,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background .35s, border-color .35s;
}
.site-header.is-over, .site-header.is-menu-open {
  background: transparent; backdrop-filter: none; border-bottom-color: transparent;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--color-text); }
.brand-word {
  font-family: var(--font-display); font-size: 1.42rem; letter-spacing: .28em;
  text-transform: uppercase; line-height: 1;
}
.lockup-rule { width: 1px; height: 22px; background: currentColor; opacity: .35; flex: none; }
.sw-logo { height: 18px; width: auto; flex: none; }
/* Header lockup: 178px is the 18px-high logo; on a narrow phone the logo
   shrinks proportionally instead of running under the language toggle. */
.site-header .brand { min-width: 0; }
.site-header .sw-logo { width: 178px; height: auto; flex: 0 1 auto; min-width: 0; }
@media (max-width: 419px) {
  .site-header .brand { gap: 8px; }
  .site-header .brand-word { font-size: 1.1rem; letter-spacing: .2em; }
}
.main-nav { display: none; gap: 30px; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.main-nav a { color: var(--color-text-muted); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a.is-active { color: var(--color-text); border-bottom-color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 10.5px; font-weight: 500; letter-spacing: .16em; color: var(--color-text-muted); white-space: nowrap; }
.lang b { color: var(--color-text); font-weight: 600; }
.nav-cta { display: none; }
.nav-toggle { width: 34px; height: 34px; display: grid; gap: 6px; align-content: center; }
.nav-toggle span { display: block; height: 1px; background: var(--color-text); transition: transform .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* On-dark header: over the hero, or over the open mobile menu. */
.site-header.is-over .brand, .site-header.is-menu-open .brand { color: var(--on-dark); }
.site-header.is-over .main-nav a { color: rgba(240,236,224,.78); }
.site-header.is-over .main-nav a:hover, .site-header.is-over .main-nav a.is-active { color: var(--on-dark); }
.site-header.is-over .lang, .site-header.is-menu-open .lang { color: rgba(240,236,224,.7); }
.site-header.is-over .lang b, .site-header.is-menu-open .lang b { color: var(--on-dark); }
.site-header.is-over .nav-toggle span, .site-header.is-menu-open .nav-toggle span { background: var(--on-dark); }

/* Mobile menu: full-screen deep-ink overlay under the header. */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: var(--ink-deep);
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .4s ease, visibility 0s linear .4s;
}
.mobile-menu.is-open { transform: none; visibility: visible; transition: transform .4s ease; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2rem; color: var(--on-dark);
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.09);
}
.mobile-menu .lang { font-family: var(--font-family-base); font-size: 11px; border-bottom: 0; margin-top: 18px; color: rgba(240,236,224,.7); }
.mobile-menu .lang b { color: var(--on-dark); }
.mobile-menu .mobile-cta { margin-top: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: calc(-1 * var(--header-h)); background: var(--ink-deep); }
.hero-media, .hero-media picture { display: block; }
.hero-art { width: 100%; height: clamp(560px, 88vh, 880px); object-fit: cover; object-position: 50% 100%; }
.hero-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) 46px;
}
.hero-inner .wrap { max-width: var(--container-max); margin: 0 auto; width: 100%; }
.hero h1 { color: var(--on-dark); max-width: 15ch; text-wrap: balance; }
.hero p { color: var(--on-dark-muted); max-width: 46ch; margin: 22px 0 30px; font-size: 1.06rem; }
/* .hero p (0,1,1) would beat .kicker / .hero-note (0,1,0): pin both here. */
.hero .kicker { color: var(--gold); font-size: 10.5px; max-width: none; margin: 0 0 20px; }
.hero .hero-note { color: rgba(255,255,255,.42); font-size: .76rem; margin: 22px 0 0; letter-spacing: .02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Facts plate (dark strip under the hero) ---------- */
.plate { background: var(--ink-deep); border-top: 1px solid rgba(255,255,255,.12); }
.plate-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.plate-cell { padding: 26px var(--gutter); border-bottom: 1px solid rgba(255,255,255,.09); }
.plate-cell:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.09); }
.plate-cell b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--on-dark); line-height: 1; }
.plate-cell span {
  display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-top: 10px;
}
/* Count-up figures: fixed-width digits so the cell does not jitter. */
[data-count] { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Arch motif (Saxon arcade) — city and unit images only ---------- */
.arch { overflow: hidden; border-radius: 50% 50% 2px 2px / 26% 26% 2px 2px; background: var(--muted-surface); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.frame { border: 1px solid var(--border); background: var(--muted-surface); }

/* ---------- City story ---------- */
.story { display: grid; gap: 36px; }
.story .arch { aspect-ratio: 3 / 4; }
.story .lead + .lead { margin-top: 16px; }
.story-link { margin-top: 28px; }
.story-quote {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; color: var(--color-accent);
  border-left: 1px solid var(--gold); padding-left: 22px; margin: 30px 0;
}
.story-quote small {
  display: block; font-family: var(--font-family-base); font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--color-text-muted); margin-top: 12px;
}

/* ---------- Facts as a definition list ---------- */
.facts { margin-top: 38px; border-top: 1px solid var(--border); }
.facts div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 17px 0; border-bottom: 1px solid var(--border);
}
.facts dt { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--color-text-muted); }
.facts dd { font-family: var(--font-display); font-size: 1.35rem; text-align: right; }
.overview { display: grid; gap: 10px; }
.facts-note { margin-top: 20px; }

/* ---------- Timeline (roman numerals) ---------- */
/* Progress hairline: draws in to done/total (--progress) once revealed. */
.timeline-progress { position: relative; height: 2px; margin-top: 36px; background: var(--border); }
.timeline-progress span {
  position: absolute; inset: 0; background: var(--color-accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1) .25s;
}
.timeline-progress.in span { transform: scaleX(var(--progress, 0)); }
.timeline { list-style: none; margin-top: 44px; }
.timeline li { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding-bottom: 34px; position: relative; }
.timeline li:not(:last-child)::before {
  content: ""; position: absolute; left: 20px; top: 46px; bottom: 6px; width: 1px; background: var(--border);
}
.timeline .num {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); width: 40px; height: 40px;
  display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%;
  background: var(--color-surface); line-height: 1;
}
.timeline li.done .num { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.timeline li.current .num { border-color: var(--color-accent); color: var(--color-accent); }
.timeline .when { font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.timeline h3 { font-size: 1.28rem; margin: 5px 0 4px; }
.timeline p { font-size: .95rem; color: var(--color-text-muted); }

/* ---------- Residences ---------- */
.units { display: grid; gap: 44px; margin-top: 46px; }
/* The grid is laid out per count (units--1/2/3/4/many, set by the markup and
   by script.js after a CRM render); mobile is always one column. */
.unit .arch { aspect-ratio: 4 / 5; }
.unit-body { padding-top: 24px; }
.unit-body .meta {
  font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.unit-body h3 { margin-bottom: 12px; }
.unit-body p { font-size: .98rem; color: var(--color-text-muted); }
.unit-specs { display: flex; gap: 26px; margin: 20px 0 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.unit-specs b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.1; }
.unit-specs span { font-size: 9.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--color-text-muted); }
.unit-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 26px; }
.unit-more {
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-text-muted); border-bottom: 1px solid var(--border); padding-bottom: 4px;
}
.unit-more:hover { color: var(--color-text); }
.unit--text .unit-body { border-top: 1px solid var(--gold); padding-top: 24px; }
.units-all { margin-top: 44px; }
/* Inline "read more" after a CRM description highlight. */
.desc-more {
  font-size: .82em; font-weight: 500; letter-spacing: .06em; color: var(--color-accent);
  border-bottom: 1px solid var(--gold); padding: 0; margin-left: 4px;
}

/* ---------- Gallery carousel ----------
   huus's structure: slides are shown whole (object-fit: contain); the
   thumbnails are the only cropped rendition. */
.gallery-viewport { position: relative; margin-top: 44px; }
.gallery-track {
  display: flex; list-style: none;
  height: clamp(260px, 56vw, 620px);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  background: var(--muted-surface); border: 1px solid var(--border);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery-slide-btn { display: block; width: 100%; height: 100%; padding: 0; cursor: zoom-in; }
.gallery-slide-btn picture { display: block; width: 100%; height: 100%; }
.gallery-slide-btn img { width: 100%; height: 100%; object-fit: contain; }
.gallery-slide-btn:focus-visible { outline-offset: -2px; }

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(252,250,244,.94); border: 1px solid var(--border);
  color: var(--color-accent); font-size: 1.6rem; line-height: 1;
  transition: background .2s, opacity .2s;
}
.gallery-nav:hover { background: var(--color-surface); }
.gallery-nav[disabled] { opacity: 0; pointer-events: none; }
.gallery-viewport .gallery-nav--prev { left: 12px; }
.gallery-viewport .gallery-nav--next { right: 12px; }

.gallery-count {
  margin-top: 14px; font-size: 10.5px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); font-variant-numeric: tabular-nums;
}
.gallery-caption { margin-top: 4px; font-size: .95rem; color: var(--color-text-muted); }

.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; list-style: none; overflow-x: auto; padding: 3px 3px 6px; scrollbar-width: thin; }
.gallery-thumb {
  flex: 0 0 auto; width: 68px; aspect-ratio: 4 / 3; padding: 0; overflow: hidden;
  opacity: .55; outline: 1px solid transparent; outline-offset: 2px;
  transition: opacity .2s, outline-color .2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.is-active { opacity: 1; }
.gallery-thumb.is-active { outline-color: var(--gold); }
.gallery-thumb:focus-visible { opacity: 1; outline: 2px solid var(--gold); }

.gallery--single .gallery-nav, .gallery--single .gallery-thumbs, .gallery--single .gallery-count { display: none; }

.gallery-lightbox {
  position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  padding: 0; border: none; background: transparent; overflow: hidden;
}
.gallery-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.gallery-lightbox::backdrop { background: rgba(13,38,32,.95); }
.gallery-lightbox-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 64px 8px 48px; }
/* display: contents makes the <img> a direct flex child, so its max-height
   resolves against the stage's definite height. */
.gallery-lightbox-stage picture { display: contents; }
.gallery-lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gallery-lightbox-caption {
  position: absolute; left: 0; right: 0; bottom: 14px; padding: 0 64px;
  text-align: center; color: var(--on-dark-muted); font-size: .9rem;
}
.gallery-lightbox .gallery-nav--prev { left: 12px; }
.gallery-lightbox .gallery-nav--next { right: 12px; }
.gallery-close {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(252,250,244,.94); color: var(--color-accent); font-size: 1.6rem; line-height: 1;
}

/* ---------- Location + masterplan ---------- */
.loc-city { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--color-text-muted); }
.loc { display: grid; gap: 36px; margin-top: 40px; align-items: start; }
.loc-heading { font-size: 1.28rem; margin: 0 0 14px; }
.loc-list + .loc-note { margin-top: 18px; }
.masterplan-legend + .loc-heading { margin-top: 40px; }
.masterplan { margin: 0; }
.masterplan svg { width: 100%; height: auto; }
.masterplan figcaption { padding: 12px 16px; border-top: 1px solid var(--border); background: var(--color-surface); }
.masterplan .mp-ground { fill: var(--muted-surface); }
.masterplan .mp-plot { fill: var(--color-surface); stroke: var(--border); stroke-width: 1.5; }
.masterplan .mp-lines { fill: none; stroke: var(--border); stroke-width: 1.5; }
.masterplan .mp-north path { fill: var(--color-text-muted); }
.masterplan text { font-family: var(--font-display); fill: currentColor; }
.masterplan .masterplan-zone text { font-size: 34px; }
.masterplan .mp-north text, .masterplan .mp-label { fill: var(--color-text-muted); font-size: 15px; letter-spacing: .3em; }
.masterplan-zone .zone-detail { fill: none; stroke: currentColor; stroke-width: 1; opacity: .55; }
.masterplan-legend small { display: block; font-size: .82rem; color: var(--color-text-muted); margin-top: 2px; }
.masterplan-legend b { font-weight: 500; }
.loc-list { list-style: none; border-top: 1px solid var(--border); }
.loc-list li {
  display: flex; justify-content: space-between; gap: 18px; padding: 15px 0;
  border-bottom: 1px solid var(--border); font-size: .96rem;
}
.loc-list b { font-weight: 500; }
.loc-list span { color: var(--color-text-muted); font-size: .85rem; text-align: right; }
.map-pin { color: var(--speedwell-red); } /* red role: the location pin (SVG uses currentColor) */
.masterplan-zone { color: var(--gold); cursor: pointer; }
.masterplan-zone .zone-shape { fill: currentColor; fill-opacity: .16; stroke: currentColor; stroke-width: 1.5; transition: fill-opacity .2s; }
.masterplan-zone:focus { outline: none; }
.masterplan-zone:focus-visible .zone-shape { stroke-width: 3; }
.masterplan-legend { list-style: none; border-top: 1px solid var(--border); }
.masterplan-legend button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 0; border-bottom: 1px solid var(--border); font-size: .96rem; color: var(--color-text);
}
.masterplan-legend button::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1px solid currentColor; }
/* red role: the active masterplan zone — the SVG zone and its legend row */
.masterplan-zone.is-active, .masterplan-legend .is-active { color: var(--speedwell-red); }
.masterplan-zone.is-active .zone-shape { fill-opacity: .28; }
.masterplan-legend .is-active::before { background: currentColor; }

/* ---------- Developer band — "Un proiect Speedwell." ---------- */
.developer { background: var(--color-surface); }
.developer .dev-grid { display: grid; gap: 34px; align-items: start; }
.developer .dev-rule { width: 64px; height: 2px; background: var(--speedwell-red); margin-bottom: 22px; } /* red role: developer rule */
.developer .sw-logo { height: 30px; margin: 6px 0 26px; }
.developer .dev-link { margin-top: 22px; }
.developer blockquote {
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1.4; color: var(--color-text);
  border-left: 1px solid var(--gold); padding-left: 22px; margin: 0 0 14px;
}
.developer cite {
  display: block; font-style: normal; font-size: .72rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 26px;
}
.developer .dev-facts { list-style: none; border-top: 1px solid var(--border); }
.developer .dev-facts li {
  display: flex; justify-content: space-between; gap: 18px; padding: 14px 0;
  border-bottom: 1px solid var(--border); font-size: .95rem;
}
.developer .dev-facts span { color: var(--color-text-muted); text-align: right; }

/* ---------- Inner page intro + breadcrumb (rezidente) ---------- */
.page-intro { padding: 56px 0 64px; border-bottom: 1px solid var(--border); }
.page-intro h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); margin-bottom: 22px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 34px; font-size: .82rem; color: var(--color-text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--border); }
.breadcrumb a { border-bottom: 1px solid var(--gold); }
.breadcrumb a:hover { color: var(--color-text); }
.prose { max-width: 820px; }
.prose .lead + .lead { margin-top: 16px; }
.included-list { list-style: none; margin-top: 30px; border-top: 1px solid var(--border); }
.included-list li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--border); position: relative; }
.included-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: var(--gold); }

/* ---------- Unit-type sections (rezidente) ---------- */
.unit-feature { display: grid; gap: 36px; }
.unit-feature .arch { margin: 0; aspect-ratio: 4 / 5; max-width: 520px; }
.unit-feature .unit-body { padding-top: 0; }
/* .unit-body p (0,1,1) would beat .kicker (0,1,0): pin it here. */
.unit-feature .unit-body .kicker { color: var(--gold); font-size: 10.5px; }
.unit-feature .unit-body .meta.unit-availability { margin: 0 0 20px; }

/* ---------- Floor plans (second gallery instance) ---------- */
.gallery-plans .gallery-track { background: var(--color-surface); }
.gallery-unit-cta { margin-top: 14px; min-height: 1.6em; }

/* ---------- Contact page ---------- */
.contact-hero .btn { margin-top: 30px; }
.contact-grid { display: grid; gap: 44px; }
.contact-grid h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.contact-grid .included-list { margin-top: 22px; }
.contact-grid .lead + .lead, .contact-grid .note { margin-top: 16px; }
.contact-details { border: 1px solid var(--border); background: var(--color-surface); padding: 28px; }
.contact-details .facts { margin-top: 18px; }
.contact-details .facts dd { font-family: var(--font-family-base); font-size: .95rem; color: var(--color-text-muted); }
.contact-links { list-style: none; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 26px; }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); margin: 48px 0 14px; }
.legal h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--color-text-muted); line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 12px 20px; }
.legal li + li { margin-top: 6px; }
.legal p a, .legal li a, .legal td a { color: var(--color-accent); border-bottom: 1px solid var(--gold); }
.legal-updated { margin-top: 18px; }
.legal-note { margin-top: 30px; padding: 18px 22px; border-left: 2px solid var(--gold); background: var(--color-surface); font-size: .92rem; }
.table-wrap { overflow-x: auto; margin: 16px 0 8px; }
.legal-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.legal-table th { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text); border-bottom-color: var(--gold); }
.legal-table td { color: var(--color-text-muted); }
.legal-table code { font-size: .85em; color: var(--color-text); }

/* ---------- Dark band (contact CTA) ---------- */
.band { background: var(--ink-deep); color: var(--on-dark); padding: 96px 0; text-align: center; position: relative; }
.band::before, .band::after, .site-footer::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); height: 1px;
  background: var(--gold); opacity: .32;
}
.band::before { top: 22px; }
.band::after { bottom: 22px; }
.band .kicker { justify-content: center; color: var(--gold); }
.band .kicker::after { display: none; }
.band h2 { color: var(--on-dark); }
.band p { color: var(--on-dark-muted); max-width: 50ch; margin: 0 auto 32px; }
.band .band-alt { margin: 22px auto 0; font-size: .9rem; }
.band .band-alt a { color: var(--on-dark); border-bottom: 1px solid var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; background: var(--ink-deep); color: var(--on-dark-muted);
  padding: 64px 0 108px; font-size: .9rem;
}
.site-footer::before { top: 22px; }
.footer-grid { display: grid; gap: 34px; }
.site-footer .brand { color: var(--on-dark); }
.footer-dev { margin-top: 16px; max-width: 38ch; }
.footer-dev a { color: var(--on-dark); border-bottom: 1px solid var(--gold); }
.site-footer h4 {
  font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.site-footer nav a { display: block; padding: 5px 0; }
.site-footer nav a:hover { color: var(--on-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 42px; padding-top: 22px;
  display: flex; flex-direction: column; gap: 12px; font-size: .76rem;
}
.footer-bottom a:hover { color: var(--on-dark); }
.anpc {
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); padding: 8px 12px;
  display: inline-block; align-self: flex-start;
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- Consent banner ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 78px; z-index: 90;
  max-height: calc(100vh - 100px); overflow-y: auto;
  background: var(--color-surface); border: 1px solid var(--border);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.4); padding: 22px;
}
.cookie strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; }
.cookie p { font-size: .83rem; color: var(--color-text-muted); margin: 8px 0 16px; }
.cookie p a { color: var(--color-accent); border-bottom: 1px solid var(--gold); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { flex: 1 1 auto; }
.cookie-prefs { margin-top: 18px; border-top: 1px solid var(--border); }
.cookie-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .83rem; color: var(--color-text-muted);
}
.cookie-row b { color: var(--color-text); }
.cookie-row input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-accent); }
.cookie-prefs-actions { padding-top: 14px; text-align: right; }

/* ---------- Mobile sticky chat bar ---------- */
.chat-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink-deep);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.chat-bar .btn { width: 100%; }
body.menu-open .chat-bar { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .timeline-progress span { transform: scaleX(var(--progress, 0)); }
  .gallery-track { scroll-behavior: auto; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .section { padding: 132px 0; }
  .main-nav { display: flex; }
  .nav-cta { display: inline-block; }
  .nav-toggle, .mobile-menu { display: none; }
  .hero-inner { padding-bottom: 72px; }
  .plate-grid { grid-template-columns: repeat(4, 1fr); }
  .plate-cell { border-right: 1px solid rgba(255,255,255,.09); border-bottom: 0; padding: 34px 26px; }
  .plate-cell:last-child { border-right: 0; }
  .story { grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
  .timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 26px; }
  .timeline li { display: block; padding-bottom: 0; }
  .timeline li::before { display: none !important; }
  .timeline .num { margin-bottom: 16px; }
  .overview { grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
  .overview .facts { margin-top: 0; }
  .units { grid-template-columns: repeat(2, 1fr); gap: 60px 44px; }
  /* One type: image and text side by side. Three or 5+: three across. */
  .units--1 { grid-template-columns: 1fr; }
  .units--1 .unit { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
  .units--1 .unit-body { padding-top: 0; }
  .units--1 .unit--text { display: block; max-width: 640px; }
  .units--3, .units--many { grid-template-columns: repeat(3, 1fr); gap: 56px 34px; }
  .gallery-thumb { width: 84px; }
  .gallery-lightbox-stage { padding: 64px 72px 56px; }
  .gallery-lightbox .gallery-nav--prev { left: 20px; }
  .gallery-lightbox .gallery-nav--next { right: 20px; }
  .loc { grid-template-columns: 1.25fr .75fr; gap: 56px; }
  .page-intro { padding: 72px 0 88px; }
  .unit-feature { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
  .unit-feature--flip .arch { order: 2; justify-self: end; }
  .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; }
  .developer .dev-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; }
  .site-footer { padding-bottom: 28px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .anpc { align-self: auto; }
  .chat-bar { display: none; }
  .cookie { left: auto; right: 26px; bottom: 26px; max-width: 430px; padding: 28px; }
}
