/* P1 catalogue — tokens taken from the existing propertyone-site landing
   so the catalogue and the funnel pages read as one product. */

:root {
  --red: #EA580C;
  --red-dark: #C2410C;
  --black: #181818;
  --white: #ffffff;
  --off: #F1F1F1;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --border: #e5e7eb;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/**
 * The `hidden` attribute is only `display: none` from the browser's own
 * stylesheet, which any class selector outranks. Every block styled with
 * `display: flex` and hidden by default therefore showed on load — the
 * thank-you message appeared before anyone had filled the form in.
 */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white); color: var(--black); line-height: 1.55;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── nav ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo svg { display: block; height: 29px; width: auto; }
.nav__links { display: flex; gap: 22px; font-size: .92rem; font-weight: 600; }
.nav__links a:hover { color: var(--red); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav__phone { font-size: .9rem; font-weight: 700; }
.nav__lang {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--border); border-radius: 100px; padding: 5px 11px;
}
.nav__lang:hover { border-color: var(--black); }

.nav__burger {
  display: none; width: 44px; height: 38px; padding: 10px 10px;
  background: none; cursor: pointer;
  /* A bordered control rather than three bare lines: on a white header the
     unframed version was easy to miss entirely. */
  border: 1px solid var(--border); border-radius: 10px;
  flex-direction: column; justify-content: space-between;
}
.nav__burger:hover { border-color: var(--black); }
.nav__burger span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: var(--black); transition: transform .2s ease, opacity .2s ease;
}
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__scrim {
  position: absolute; inset: 0; background: rgba(10,10,12,.5);
  opacity: 0; transition: opacity .22s ease;
}
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(84vw, 320px); background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.22,.61,.36,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
  /* Keeps the panel clear of the notch and the home indicator. */
  padding: max(14px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom));
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 18px 18px; border-bottom: 1px solid var(--border);
}
.drawer__logo svg { display: block; height: 27px; width: auto; }
.drawer__close {
  width: 42px; height: 42px; font-size: 1.7rem; line-height: 1;
  background: none; border: none; cursor: pointer; color: var(--black);
}

.drawer__nav { display: flex; flex-direction: column; padding: 8px 0; flex: 1; }
.drawer__link {
  padding: 15px 18px; font-size: 1.05rem; font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.drawer__link:active { background: var(--off); }

.drawer__foot {
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid var(--border);
}
.drawer__phone {
  font-size: 1.1rem; font-weight: 800; color: var(--red);
}
.drawer__lang {
  align-self: flex-start; font-size: .85rem; font-weight: 700;
  border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px;
}

/* The drawer is a mobile affordance; on a wide screen the row is already there. */
@media (prefers-reduced-motion: reduce) {
  .drawer__scrim, .drawer__panel { transition: none; }
}

/* ── breadcrumbs ───────────────────────────────────────────────── */
.crumbs { max-width: var(--wrap); margin: 0 auto; padding: 16px 24px 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: .8rem; color: var(--gray); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--gray-light); }
.crumbs a:hover { color: var(--red); }

/* ── hero ──────────────────────────────────────────────────────── */
/* Tuned so the first row of city cards lands inside a 900px-tall viewport.
   Every value here was spent on getting a photograph above the fold. */
.hero { padding: 30px 0 22px; }
.hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.06;
}
.hero__sub {
  margin-top: 8px; max-width: 680px; color: var(--gray); font-size: .98rem;
}
.hero__count { color: var(--gray-light); white-space: nowrap; }

/* The cities block sits directly under the search, so it carries no top rule
   and no heading of its own. */
.block--flush { padding-top: 4px; border-top: none; }

/* ── headers ───────────────────────────────────────────────────── */
.lhead { padding: 28px 0 20px; }
.lhead h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; letter-spacing: -.025em; }
.lhead__count { margin-top: 6px; color: var(--gray); font-size: .92rem; }

.block { padding: 30px 0; border-top: 1px solid var(--border); }
.block:first-child { border-top: none; }
.block > h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sechead h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.sechead__more { font-size: .88rem; font-weight: 700; color: var(--red); white-space: nowrap; }
.note { color: var(--gray); font-size: .86rem; margin-top: 8px; }

/* ── cards ─────────────────────────────────────────────────────── */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--white); transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.09); transform: translateY(-2px); }
.card__media { display: block; position: relative; aspect-ratio: 3/2; background: var(--off); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__noimg { width: 100%; height: 100%; background: var(--off); }
.card__chips { position: absolute; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: rgba(24,24,24,.78); color: #fff; font-size: .71rem; font-weight: 600;
  padding: 4px 9px; border-radius: 100px; backdrop-filter: blur(4px);
}
.card__body { padding: 14px 16px 18px; }
.card__title { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.card__title a:hover { color: var(--red); }
.card__loc { margin-top: 4px; font-size: .85rem; color: var(--gray); }
.card__price { margin-top: 10px; font-size: 1.02rem; }
.card__price--none { color: var(--gray); font-size: .9rem; }
.card__dev { margin-top: 6px; font-size: .8rem; color: var(--gray-light); }

/* ── region cards (home page city chooser) ─────────────────────────
   One idea carries the hover: a thread traces itself around the artwork while
   the image drifts in. Everything else stays still on purpose. */
.regions {
  display: grid; gap: 18px;
  /* Twelve tracks so a row can be split 12, 4+4+4 or 6+6. The span of each
     card is set in build/lib/regions.js and arrives as --span. */
  grid-template-columns: repeat(12, 1fr);
}
.region { position: relative; grid-column: span var(--span, 4); }

/* Card proportions follow width: a full-bleed banner should not be as tall as
   it is wide, and a third-width card should not be a letterbox. */
.region[data-span="12"] .region__link { aspect-ratio: 32/9; }
.region[data-span="6"]  .region__link { aspect-ratio: 7/6; }
.region[data-span="4"]  .region__link { aspect-ratio: 1/1; }

.region[data-span="12"] .region__name { font-size: 1.9rem; }
.region[data-span="6"]  .region__name { font-size: 1.5rem; }

.region__link {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16/11; border-radius: 18px; background: #EDEDED;
  isolation: isolate;
}

.region__art { position: absolute; inset: 0; display: block; }
.region__art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  transform: scale(1.01);
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}

/* The thread. pathLength="1" makes the dash maths independent of the actual
   path length, so all three variants animate identically. */
.region__thread {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: #F0567A; opacity: 0; pointer-events: none; z-index: 2;
  transition: opacity .25s ease;
}
.region__thread path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s cubic-bezier(.65,0,.35,1) var(--thread-delay, 0ms);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.25));
}

.region__shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top,
    rgba(20,20,22,.86) 0%, rgba(20,20,22,.45) 32%, rgba(20,20,22,0) 62%);
}

.region__meta {
  position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 3;
  /* Clicks fall through to the card link underneath. */
  pointer-events: none;
  display: flex; flex-direction: column; gap: 2px; color: #fff;
}
.region__name {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.region__count { font-size: .82rem; font-weight: 500; opacity: .88; }

.region__link:hover .region__art img,
.region__link:focus-visible .region__art img { transform: scale(1.06); }
.region__link:hover .region__thread,
.region__link:focus-visible .region__thread { opacity: 1; }
.region__link:hover .region__thread path,
.region__link:focus-visible .region__thread path { stroke-dashoffset: 0; }

/* Town chips sit over the bottom-right corner, clear of the city name. */
.region__towns {
  /* Above the city name, left-aligned. Sitting in the corner opposite the name
     leaves the eye crossing the card to read it. */
  position: absolute; left: 20px; right: 20px; z-index: 4;
  bottom: calc(16px + 3.4em);
  display: flex; flex-wrap: wrap; gap: 5px;
}
.region__town {
  font-size: .72rem; font-weight: 600; color: #fff;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px); white-space: nowrap;
}
.region__town:hover { background: var(--red); border-color: var(--red); }

/* Tablet: the twelve-track grid collapses to halves, and the banner keeps the
   full width it was designed for. */
@media (max-width: 900px) {
  .region { grid-column: span 6; }
  .region[data-span="12"] { grid-column: span 12; }
  .region[data-span="12"] .region__link { aspect-ratio: 21/9; }
  .region[data-span="6"]  .region__link,
  .region[data-span="4"]  .region__link { aspect-ratio: 4/3; }
}

@media (max-width: 560px) {
  .region,
  .region[data-span="12"] { grid-column: span 12; }
  .region[data-span="12"] .region__link,
  .region[data-span="6"]  .region__link,
  .region[data-span="4"]  .region__link { aspect-ratio: 3/2; }
  .region__name,
  .region[data-span="12"] .region__name,
  .region[data-span="6"]  .region__name { font-size: 1.25rem; }
  /* Chips would collide with the city name on a narrow card. */
  .region__towns { position: static; margin-top: 8px; justify-content: flex-start; }
  .region__town { background: var(--off); border-color: var(--border); color: var(--black); }
}

@media (prefers-reduced-motion: reduce) {
  .region__art img { transition: none; }
  .region__thread path { transition: none; stroke-dashoffset: 0; }
}

/* ── artwork variant ─────────────────────────────────────────────
   A commissioned collage is a light illustration on a pale field, so the card
   inverts: no dark scrim, dark type, and the image is contained rather than
   cropped — a composed illustration must not be cut by object-fit: cover. */
.region--art .region__link { background: #EFEFF0; }
.region--art .region__art img { object-fit: contain; object-position: center 42%; }
.region--art .region__shade { display: none; }
.region--art .region__name { color: var(--black); text-shadow: none; }
.region--art .region__count { color: var(--gray); opacity: 1; }
/* The accent bar to the left of the name, as in the source artwork. */
.region--art .region__meta {
  padding-left: 12px;
  border-left: 2px solid #F0567A;
}
.region--art .region__town {
  background: rgba(255,255,255,.7); border-color: var(--border); color: var(--black);
}
.region--art .region__town:hover { background: var(--red); border-color: var(--red); color: #fff; }
.region--art .region__link:hover .region__art img,
.region--art .region__link:focus-visible .region__art img { transform: scale(1.045); }

/* ── filter panel ────────────────────────────────────────────────
   Controls sized to be tappable: on a phone this is the primary way through
   the catalogue, and a 32px select is not usable there. */
.filters {
  position: relative;   /* the visually hidden chip inputs anchor to this */
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 26px; background: var(--white);
}
.filters__top {
  display: grid; gap: 12px; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
/* The second row is not a uniform grid: bedroom chips size to their content,
   the price pair takes the slack, the button stays its own width. A grid of
   equal columns squeezed the chips into two cramped lines. */
.filters__mid {
  margin-top: 14px; display: flex; flex-wrap: wrap;
  gap: 12px 16px; align-items: flex-end;
}
/* Chips size to their content but may shrink to the row: with flex: 0 0 auto
   the seven bedroom chips stayed on one 378px line and pushed a phone page
   sideways. Shrinking lets them wrap inside the panel instead. */
.filters__mid > .ff:first-child { flex: 0 1 auto; max-width: 100%; }
.filters__mid > .ff + .ff { flex: 1 1 280px; }

.ff { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ff__label {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--gray);
}
.ff select, .ff input[type=number] {
  font-family: inherit; font-size: .95rem; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--black); width: 100%; min-width: 0;
}
.ff select:focus, .ff input:focus { outline: none; border-color: var(--red); }
.ff select:disabled { background: var(--off); color: var(--gray-light); }
.ff__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipbox { display: inline-flex; }
/* Hidden without leaving the flow of its own label: `position: absolute` with
   no positioned ancestor sent these to the top of the document. */
.chipbox input {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; margin: 0; pointer-events: none;
}
.chipbox span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600;
}
.chipbox input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chipbox input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.filters__apply { flex: 0 0 auto; height: 44px; padding: 0 30px; white-space: nowrap; }

.filters__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 16px; flex-wrap: wrap;
}
.filters__toggle, .filters__reset {
  font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
  background: none; border: none; padding: 0;
}
.filters__toggle { color: var(--red); }
.filters__reset { color: var(--gray); }
.filters__reset:hover { color: var(--black); }
.filters.is-open .filters__toggle span { display: inline-block; transform: rotate(180deg); }

.filters__adv { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.filters__grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 18px;
}
.checks {
  display: grid; gap: 9px 20px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; cursor: pointer; }
.checkbox input { margin-top: 2px; accent-color: var(--red); width: 16px; height: 16px; }

.filters__results { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.filters__count { font-size: .9rem; font-weight: 700; margin-bottom: 14px; }
.filters__more {
  display: block; margin: 22px auto 0; background: var(--off); color: var(--black);
  border: 1px solid var(--border);
}
.filters__more:hover { border-color: var(--black); }

/* On the home page the panel is the first thing under the headline, so it
   floats over the hero rather than sitting in a bordered box. */
.hero .filters {
  margin: 18px 0 0; padding: 16px 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,.08); border-color: var(--border);
}
.hero .filters__top, .hero .filters__mid { gap: 10px; }
/* Advanced search stays collapsed on the home page: it is a jump-off point,
   not the place to build a precise query. */
.hero .filters__bar { margin-top: 10px; }
.hero .filters__bar { margin-top: 14px; }

@media (max-width: 560px) {
  .filters { padding: 16px 14px; }
  .filters__apply { width: 100%; }
  /* Bedroom chips share one row on a phone: equal widths, "Студия" a bit
     wider. They still wrap on the narrowest screens rather than overflow. */
  .filters__mid > .ff:first-child { flex-basis: 100%; }
  .chips { gap: 5px; }
  .chipbox { flex: 1 1 0; min-width: 34px; }
  .chipbox:first-child { flex-grow: 1.9; min-width: 60px; }
  .chipbox span { width: 100%; min-width: 0; padding: 10px 4px; }
}

/* ── catalogue tiles ─────────────────────────────────────────────
   Denser than the region cards on purpose: this is a directory to scan, not a
   set of destinations to admire. */
.ctiles {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.ctile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3/2; border-radius: 12px; background: var(--off);
  isolation: isolate;
}
.ctile__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.ctile__img--empty { background: var(--off); }
.ctile__shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top,
    rgba(16,16,18,.88) 0%, rgba(16,16,18,.42) 42%, rgba(16,16,18,.06) 78%);
}
.ctile__label {
  position: absolute; left: 13px; right: 13px; bottom: 11px; z-index: 2;
  display: flex; flex-direction: column; gap: 1px; color: #fff;
}
.ctile__name {
  font-size: .95rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.ctile__n { font-size: .76rem; opacity: .82; }
.ctile:hover .ctile__img { transform: scale(1.07); }
.ctile:hover .ctile__name { text-decoration: underline; text-underline-offset: 3px; }

.catalog__note {
  margin-top: 28px; max-width: 72ch; font-size: .88rem; color: var(--gray); line-height: 1.65;
}
.lhead__lead { margin-top: 8px; max-width: 62ch; font-size: 1rem; color: #444; }

@media (max-width: 560px) {
  .ctiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ctile__name { font-size: .84rem; }
}

/* ── link blocks (internal linking) ────────────────────────────── */
.links { padding: 30px 0; border-top: 1px solid var(--border); }
.links__title { font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.links__list {
  list-style: none; display: grid; gap: 8px 24px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.links__list a { font-size: .89rem; }
.links__list a:hover { color: var(--red); text-decoration: underline; }
.links__count { color: var(--gray-light); font-size: .78rem; margin-left: 6px; }

/* ── gallery ───────────────────────────────────────────────────── */
.gal { max-width: var(--wrap); margin: 20px auto 0; padding: 0 24px; }
.gal__main {
  position: relative; width: 100%; aspect-ratio: 16/9; max-height: 560px;
  border-radius: 20px; overflow: hidden; background: var(--off);
}
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); font-size: 1.5rem; line-height: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.gal__nav--prev { left: 14px; } .gal__nav--next { right: 14px; }
.gal__counter {
  position: absolute; right: 14px; bottom: 14px;
  background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 5px 12px; border-radius: 100px;
}
.gal__thumbs { display: flex; gap: 9px; margin-top: 11px; overflow-x: auto; scrollbar-width: none; }
.gal__thumbs::-webkit-scrollbar { display: none; }
.gal__thumb {
  flex: 0 0 110px; width: 110px; height: 78px; object-fit: cover;
  border-radius: 9px; cursor: pointer; opacity: .58; border: 2px solid transparent;
  transition: opacity .15s;
}
.gal__thumb.is-active, .gal__thumb:hover { opacity: 1; border-color: var(--red); }

/* ── project head ──────────────────────────────────────────────── */
.phead { padding: 28px 0 0; }
.phead h1 { font-size: clamp(1.4rem, 3vw, 1.95rem); font-weight: 900; letter-spacing: -.025em; }
.phead__loc { margin-top: 6px; color: var(--gray); font-size: .95rem; }
.phead__loc a { color: var(--red); font-weight: 600; }

.specs {
  display: flex; flex-wrap: wrap; gap: 32px; margin-top: 22px;
  padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.specs__item { display: flex; flex-direction: column; }
.specs__v { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.specs__l { font-size: .76rem; color: var(--gray); }

.prose p { margin-bottom: 12px; color: #333; }
.prose { max-width: 72ch; }
.prose--clamped { position: relative; max-height: 15em; overflow: hidden; }
.prose--clamped::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 5em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}
.prose--clamped.is-open { max-height: none; }
.prose--clamped.is-open::after { display: none; }
.prose-toggle {
  margin-top: 6px; background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: .89rem; font-weight: 700; color: var(--red);
}

/* ── bedroom summary table ─────────────────────────────────────── */
.beds { overflow-x: auto; margin: 8px 0 26px; }
.beds__table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 420px; }
.beds__table th {
  text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--gray); font-weight: 700; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--border);
}
.beds__table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--border); }
.beds__table td a { color: var(--red); font-weight: 600; }
.beds__table td a:hover { text-decoration: underline; }

/* ── the gate ──────────────────────────────────────────────────── */
.gate {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #FFF7ED 100%);
  padding: 30px; margin-top: 8px;
}
.gate__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.gate__icon svg { width: 22px; height: 22px; }
.gate h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.gate__sub { margin-top: 6px; color: var(--gray); font-size: .93rem; max-width: 52ch; }
.gate__form { margin-top: 18px; display: grid; gap: 10px; max-width: 420px; }
.gate__form input[type=text], .gate__form input[type=tel], .gate__form input[type=email] {
  font-family: inherit; font-size: .95rem; padding: 12px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
}
.gate__form input:focus { outline: none; border-color: var(--red); }
.gate__form input[aria-invalid="true"] { border-color: #dc2626; }
.gate__hp { position: absolute; left: -9999px; }
.btn {
  font-family: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  border: none; border-radius: 100px; padding: 13px 26px;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--primary[disabled] { opacity: .6; cursor: default; }
.gate__err { color: #dc2626; font-size: .85rem; }
.gate__note { color: var(--gray-light); font-size: .76rem; line-height: 1.45; }
.gate__thanks {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 26px 24px; border-radius: var(--radius-sm);
  background: #ECFDF5; border: 1px solid #A7F3D0;
}
.gate__tick {
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 8px;
  background: #10B981; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.gate__tick svg { width: 20px; height: 20px; }
.gate__thanks strong { font-size: 1.05rem; }
.gate__thanks span { font-size: .9rem; color: #3f6152; max-width: 46ch; }

/* ── features ──────────────────────────────────────────────────── */
.feats { list-style: none; display: grid; gap: 10px 28px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.feats li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.feats__k { color: var(--gray); }
.feats__v { font-weight: 600; }

/* ── map ───────────────────────────────────────────────────────── */
.map {
  width: 100%; height: 420px; border-radius: var(--radius);
  overflow: hidden; background: #3a3a3a;
}

/* ── nearby infrastructure ─────────────────────────────────────── */
.poi-grid {
  display: grid; gap: 20px 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 16px;
}
.poi__title {
  font-size: .76rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--gray);
  padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.poi__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 7px 0; font-size: .9rem;
}
.poi__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poi__dist {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--gray); font-size: .82rem; white-space: nowrap;
}
.poi__dist svg { width: 13px; height: 13px; }
.poi__loading {
  display: block; height: 14px; width: 70%; border-radius: 4px; margin: 10px 0;
  background: linear-gradient(90deg, #f3f4f6 25%, #e9eaec 37%, #f3f4f6 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
}

/* ── crypto banner (catalogue) ───────────────────────────────────
   Wide and dark: the one loud element on a page of small tiles, so it reads as
   a statement rather than a thirteenth category. */
.crypto {
  margin-top: 34px; padding: 40px 44px; border-radius: 22px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 140% at 88% 20%, rgba(247,147,26,.28) 0%, rgba(247,147,26,0) 58%),
    #141416;
  color: #fff;
  display: grid; gap: 32px;
  grid-template-columns: minmax(0, 1fr) 190px; align-items: center;
}
.crypto__title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 900;
  letter-spacing: -.035em; line-height: 1.05;
}
.crypto__lead { margin-top: 12px; color: #b6b8bd; max-width: 60ch; line-height: 1.6; }
.crypto__points {
  margin-top: 18px; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.crypto__points li {
  font-size: .8rem; font-weight: 600; padding: 6px 13px; border-radius: 100px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
}
.crypto__cta {
  display: inline-block; margin-top: 24px;
  background: #F7931A; color: #141416;
  font-weight: 800; font-size: .92rem;
  padding: 13px 26px; border-radius: 100px;
  transition: transform .18s ease, background .18s ease;
}
.crypto__cta:hover { background: #FFA733; transform: translateY(-1px); }

.crypto__mark { color: #F7931A; justify-self: center; }
.crypto__mark svg {
  width: 168px; height: 168px; display: block;
  filter: drop-shadow(0 14px 40px rgba(247,147,26,.4));
  animation: coinFloat 6s ease-in-out infinite;
}
@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-10px) rotate(4deg); }
}

@media (max-width: 780px) {
  .crypto {
    grid-template-columns: 1fr; padding: 30px 22px; gap: 22px;
    /* Coin above the text on a narrow screen: it is the hook, not a footnote. */
    grid-template-areas: 'mark' 'text';
  }
  .crypto__text { grid-area: text; }
  .crypto__mark { grid-area: mark; justify-self: start; }
  .crypto__mark svg { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .crypto__mark svg { animation: none; }
  .crypto__cta { transition: none; }
}

/* ── about page ──────────────────────────────────────────────────
   The services are stages of one process, so they read as a numbered path with
   a single line running through it rather than six identical boxes. */

.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow--light { color: #FF9A66; }

.about-hero { padding: 40px 0 8px; }
.about-hero__title {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 900;
  letter-spacing: -.035em; line-height: 1.06; max-width: 20ch;
}
.about-hero__grid {
  margin-top: 34px; display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start;
}
.about-hero__photo { border-radius: 20px; overflow: hidden; background: var(--off); }
.about-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-hero__lead { font-size: 1.15rem; font-weight: 600; color: var(--black); margin-bottom: 14px; }
.about-hero__text p { color: #444; margin-bottom: 12px; max-width: 54ch; }

.about-stats {
  margin-top: 48px; padding: 30px 0; display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.about-stat__v {
  display: block; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900;
  letter-spacing: -.04em; line-height: 1;
}
.about-stat__l { display: block; margin-top: 6px; font-size: .82rem; color: var(--gray); }

.about-svcs { padding: 60px 0 20px; }
.about-svcs__title {
  font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 900; letter-spacing: -.03em;
}
.about-svcs__lead { margin-top: 10px; color: var(--gray); max-width: 56ch; }

.svcs { list-style: none; margin-top: 34px; position: relative; }
/* The thread running the length of the path. */
.svcs::before {
  content: ''; position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(to bottom, var(--red) 0%, #F0567A 55%, rgba(240,86,122,0) 100%);
}
.svc {
  position: relative; display: grid; gap: 20px;
  grid-template-columns: 40px minmax(0, 1fr);
  padding: 22px 0 26px; border-bottom: 1px solid var(--border);
}
.svc:last-child { border-bottom: none; }
.svc__n {
  position: relative; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 2px solid var(--red); color: var(--red);
  font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: background .2s ease, color .2s ease;
}
.svc:hover .svc__n { background: var(--red); color: #fff; }
.svc__title { font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; }
.svc__text { margin-top: 8px; color: #444; max-width: 62ch; font-size: .95rem; }
.svc__cta {
  margin-top: 16px; font: inherit; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  color: #fff; background: var(--black); border: none;
  border-radius: 100px; padding: 11px 22px;
  transition: background .18s ease;
}
.svc__cta:hover { background: var(--red); }

/* ── media block (video + channels) ──────────────────────────────
   The video is a facade: a thumbnail until pressed. An embedded YouTube iframe
   costs about a megabyte and sets third-party cookies for every visitor,
   including those who never press play. */
.media { padding: 56px 0 8px; }
.media__title { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 900; letter-spacing: -.03em; }
.media__lead { margin-top: 10px; color: var(--gray); max-width: 58ch; }
.media__grid {
  margin-top: 28px; display: grid; gap: 22px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start;
}

.vid { position: relative; border-radius: 18px; overflow: hidden; background: #101012; }
.vid__play {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  position: relative; aspect-ratio: 16/9; background: #101012;
}
.vid__thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.22,.61,.36,1), filter .3s ease;
}
.vid__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,.55) 0%, rgba(10,10,12,.05) 55%);
}
.vid__btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), background .2s ease;
}
.vid__btn svg { width: 30px; height: 30px; margin-left: 3px; }
.vid__play:hover .vid__btn { transform: translate(-50%,-50%) scale(1.09); }
.vid__play:hover .vid__thumb { transform: scale(1.04); }
.vid__cap {
  position: absolute; left: 18px; right: 18px; bottom: 14px;
  color: #fff; font-size: .95rem; font-weight: 700; text-align: left;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.vid__frame { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.media__consent { margin-top: 10px; font-size: .74rem; color: var(--gray-light); }

.media__chans { display: grid; gap: 14px; }
.chan {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px;
  align-items: start; padding: 20px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--white);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.chan:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.chan--yt:hover { border-color: #FF0033; }
.chan--tg:hover { border-color: #2AABEE; }
.chan__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.chan__icon svg { width: 24px; height: 24px; }
.chan--yt .chan__icon { background: #FF0033; }
.chan--tg .chan__icon { background: #2AABEE; }
.chan__body { display: flex; flex-direction: column; gap: 2px; }
.chan__label { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.chan__handle { font-size: .8rem; color: var(--gray-light); }
.chan__blurb { margin-top: 6px; font-size: .87rem; color: var(--gray); line-height: 1.5; }
.chan__cta {
  grid-column: 2; margin-top: 12px;
  font-size: .8rem; font-weight: 700; color: var(--red);
}
.chan:hover .chan__cta { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .media__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .vid__thumb, .vid__btn, .chan { transition: none; }
}

.about-contact {
  margin: 64px 0 20px; padding: 42px; border-radius: 22px;
  background: #141416; color: #fff;
  display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: start;
}
.about-contact h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 900; letter-spacing: -.03em; }
.about-contact__lead { margin-top: 12px; color: #b6b8bd; max-width: 44ch; }
.about-contact__alt {
  display: inline-block; margin-top: 20px; font-size: .9rem; font-weight: 700; color: #FF9A66;
}
.about-contact__alt:hover { text-decoration: underline; }

.about-form { display: grid; gap: 10px; }
.about-form__label { font-size: .78rem; color: #9aa0a6; }
.about-form input, .about-form__select {
  font-family: inherit; font-size: .95rem; padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1px solid #2c2f35;
  background: #1c1e22; color: #fff;
}
.about-form input::placeholder { color: #7c828a; }
.about-form input:focus, .about-form__select:focus { outline: none; border-color: var(--red); }
.about-form input[aria-invalid="true"] { border-color: #f87171; }
.about-form .gate__note { color: #7c828a; }
.about-form__submit { margin-top: 4px; }
.about-contact__done {
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.4);
  display: flex; flex-direction: column; gap: 3px;
}
.about-contact__done span { color: #b6b8bd; font-size: .88rem; }

@media (max-width: 860px) {
  .about-hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .about-contact { grid-template-columns: 1fr; padding: 28px 22px; }
}
@media (max-width: 560px) {
  .svc { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
  .svc__n { width: 32px; height: 32px; font-size: .74rem; }
  .svcs::before { left: 15px; }
}

/* ── footer ────────────────────────────────────────────────────── */
.footer { margin-top: 60px; border-top: 1px solid var(--border); background: #FAFAFA; }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px; }
.footer__brand svg { display: block; height: 34px; width: auto; }
.footer__legal { margin-top: 12px; max-width: 74ch; font-size: .8rem; color: var(--gray); line-height: 1.6; }
.footer__company { margin-top: 14px; font-size: .78rem; color: var(--gray); line-height: 1.6; }
.footer__company strong { color: var(--black); font-weight: 700; letter-spacing: .01em; }
.footer__meta { margin-top: 20px; display: flex; gap: 20px; font-size: .82rem; color: var(--gray); }

/* The header row runs out of space before the phone-sized breakpoint, so the
   menu takes over on tablets as well. */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__phone { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { padding: 12px 20px; }
}
@media (min-width: 901px) {
  .drawer { display: none !important; }
}

@media (max-width: 720px) {
  .nav__inner { padding: 10px 16px; }
  /* Without this the drawer scrolls the page behind it. */
  body.is-menu-open { overflow: hidden; }
  .gal { padding: 0 14px; }
  .gal__main { border-radius: 14px; }
  .wrap { padding: 0 16px; }
  .crumbs { padding: 12px 16px 0; }
  .specs { gap: 22px; }
  .gate { padding: 22px 18px; }
  .hero { padding: 20px 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── city map ──────────────────────────────────────────────────── */
/* ── drawing on the map ────────────────────────────────────────── */
.citymap-wrap { position: relative; }
.drawbar {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.drawbar__btn {
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
  padding: 9px 14px; border-radius: 10px;
  background: rgba(255,255,255,.95); color: var(--black);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.drawbar__btn:hover { background: #fff; }
.drawbar__btn.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.drawbar__btn--clear { background: rgba(24,24,26,.92); color: #fff; border-color: transparent; }
.drawbar__count {
  padding: 9px 13px; border-radius: 10px; font-size: .82rem; font-weight: 700;
  background: rgba(24,24,26,.92); color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

@media (max-width: 560px) {
  .drawbar { left: 8px; top: 8px; right: 8px; }
  .drawbar__btn { padding: 8px 11px; font-size: .76rem; }
}

.citymap {
  width: 100%; height: 480px; border-radius: var(--radius);
  overflow: hidden; background: #3a3a3a;
}
.citymap.is-loading { position: relative; }
.citymap.is-loading::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #3a3a3a 25%, #464646 37%, #3a3a3a 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
}

/* Mini card inside the info window. Google wraps content in its own container,
   so the padding is stripped rather than fought with. */
.gm-style .gm-style-iw-c { padding: 0 !important; border-radius: 14px; overflow: hidden; }
.gm-style .gm-style-iw-d { overflow: hidden !important; padding: 0 !important; }
.gm-style .gm-style-iw-c button[aria-label="Close"] { top: 4px !important; right: 4px !important; }

.mapcard { display: block; width: 236px; color: var(--black); }
.mapcard__img {
  width: 100%; height: 124px; object-fit: cover; display: block; background: var(--off);
}
.mapcard__body { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px 13px; }
.mapcard__name { font-size: .95rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.mapcard__meta { font-size: .78rem; color: var(--gray); }
.mapcard__price { margin-top: 5px; font-size: .92rem; font-weight: 800; color: var(--red); }
.mapcard:hover .mapcard__name { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 720px) { .citymap { height: 360px; } }

/* Safety net for phones: nothing may widen the page sideways. clip, unlike
   hidden, creates no scroll container, so position: sticky keeps working;
   hidden is the fallback for browsers without clip. */
html, body { overflow-x: hidden; overflow-x: clip; }

/* iOS Safari zooms the page in when a field under 16px gets focus, and the
   page stays zoomed after the picker closes — on a phone that read as "the
   filters widen the screen". 16px on touch screens stops the zoom without
   switching off pinch-zoom for people who need it. */
@media (max-width: 860px), (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
}
