/* Isani Park Residence — dark-first architectural presentation.
   Layout concept: an arcade — tall narrow type, thin vertical rules as columns,
   generous bays of empty space, content set in a quiet editorial column. */
:root {
  /* colour — dark (default brand look) */
  --bg: #0c0b09;
  --bg-raise: #15130f;
  --bg-sunk: #080706;
  --fg: #f1e9dc;
  --fg-muted: #bcb09f;
  --fg-faint: #948a7c;
  --line: rgba(241, 233, 220, 0.13);
  --line-strong: rgba(241, 233, 220, 0.3);
  --accent: #d6bd92;
  --accent-soft: rgba(214, 189, 146, 0.12);
  --btn-bg: #d6bd92;
  --btn-fg: #16120c;
  --btn-bg-hover: #e6d2ad;
  --focus: #f2dcae;
  --danger: #f2a58f;
  --success: #bcd6a6;
  --pattern: rgba(241, 233, 220, 0.028);
  --glass: rgba(14, 12, 10, 0.78);
  --hero-veil: linear-gradient(180deg, rgba(12, 11, 9, 0.7) 0%, rgba(12, 11, 9, 0.62) 38%, rgba(12, 11, 9, 0.8) 78%, #0c0b09 100%);
  --hero-vignette: radial-gradient(60% 55% at 50% 48%, rgba(12, 11, 9, 0.35), transparent 70%);
  --plan-bg: #f3efe6;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  color-scheme: dark;

  /* type */
  --font-display: "Cormorant Garamond", "Noto Serif Georgian", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Noto Sans Georgian", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.4vw, 1.3rem);
  --fs-h2: clamp(2.3rem, 1.4rem + 3.4vw, 4.1rem);
  --fs-h3: clamp(1.55rem, 1.25rem + 1.1vw, 2.1rem);
  --fs-h4: 1.2rem;
  --tracking-caps: 0.22em;

  /* space */
  --gutter: clamp(16px, 4vw, 56px);
  --container: 1280px;
  --section: clamp(84px, 7vw + 40px, 160px);
  --radius-pill: 999px;
  --radius: 18px;
  --header-h: 72px;
  --bar-h: 0px;
}

:root[data-theme="light"] {
  --bg: #faf8f4;
  --bg-raise: #ffffff;
  --bg-sunk: #f1ede5;
  --fg: #1b1814;
  --fg-muted: #544c42;
  --fg-faint: #6d6457;
  --line: rgba(27, 24, 20, 0.12);
  --line-strong: rgba(27, 24, 20, 0.28);
  --accent: #86683a;
  --accent-soft: rgba(134, 104, 58, 0.09);
  --btn-bg: #231e18;
  --btn-fg: #f8f2e7;
  --btn-bg-hover: #3a3128;
  --focus: #86683a;
  --danger: #a3301a;
  --success: #3b6a28;
  --pattern: rgba(27, 24, 20, 0.035);
  --glass: rgba(250, 248, 244, 0.82);
  --hero-veil: linear-gradient(180deg, rgba(250, 248, 244, 0.74) 0%, rgba(250, 248, 244, 0.7) 40%, rgba(250, 248, 244, 0.86) 80%, #faf8f4 100%);
  --hero-vignette: radial-gradient(60% 55% at 50% 48%, rgba(250, 248, 244, 0.4), transparent 70%);
  --shadow: 0 30px 70px -45px rgba(40, 30, 15, 0.45);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
::selection { background: var(--accent); color: var(--btn-fg); }

.skip { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--btn-bg); color: var(--btn-fg); border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
}
.h2, .h3, .h4, .h5 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
.h2 { font-size: var(--fs-h2); line-height: 1.04; }
.h3 { font-size: var(--fs-h3); line-height: 1.12; }
.h4 { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.h5 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--fg-muted); max-width: 40em; margin: 1.4rem 0 0; }
.note { font-size: var(--fs-small); color: var(--fg-muted); max-width: 62ch; }
p { margin: 0 0 1em; }

/* Georgian: no faux-caps; the display serif is larger per em, so scale headings down */
:lang(ka) .eyebrow, :lang(ka).eyebrow { text-transform: none; letter-spacing: 0.04em; font-size: 0.875rem; }
.lang-ka .h2 { font-size: calc(var(--fs-h2) * 0.72); line-height: 1.22; font-weight: 400; }
.lang-ka .h3 { font-size: calc(var(--fs-h3) * 0.8); line-height: 1.3; font-weight: 400; }
.lang-ka body, body.lang-ka { font-size: 1rem; line-height: 1.72; }
.lang-ka .btn { letter-spacing: 0.01em; text-transform: none; }
.lang-ka .lead { font-size: calc(var(--fs-lead) * 0.94); }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: var(--h); padding: 0 1.6em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent; background: transparent; color: var(--fg);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; text-align: center; line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--ghost { border-color: var(--line-strong); background: color-mix(in srgb, var(--bg) 35%, transparent); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--text { --h: 44px; padding: 0 0.4em; color: var(--fg); letter-spacing: 0.12em; }
.btn--text:hover { color: var(--accent); }
.btn--sm { --h: 44px; padding-inline: 1.2em; font-size: 0.75rem; }
.btn--text.btn--sm { padding-inline: 0.2em; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--fg); padding: 0;
  transition: border-color 0.2s, background-color 0.2s;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn--line { border-color: var(--line-strong); }
.icon-btn--line:hover { border-color: var(--fg); }
.icon-btn--sm { width: 36px; height: 36px; }
.icon-btn[disabled] { opacity: 0.35; cursor: default; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; }
.link-arrow svg, .site-footer__links svg, .direct__links svg { width: 16px; height: 16px; display: inline-block; vertical-align: -2px; }

.badge {
  display: inline-block; padding: 0.2em 0.75em; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted);
}
:lang(ka) .badge { text-transform: none; letter-spacing: 0.02em; font-size: 0.75rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .page-doc .site-header { background: var(--glass); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.mc-mark { color: var(--fg); }
.mc-mark .mg-c { color: var(--accent); }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; white-space: nowrap; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-decoration: none; color: var(--fg-muted); transition: color 0.2s; }
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--fg); }
.site-header__tools { display: flex; align-items: center; gap: 8px; }
.lang ul { display: flex; list-style: none; margin: 0; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); }
.lang a { display: inline-grid; place-items: center; min-width: 44px; height: 36px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-decoration: none; color: var(--fg-muted); }
.lang a:hover { color: var(--fg); }
.lang a[aria-current="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.theme-toggle .theme-toggle__moon, [data-theme-toggle] .theme-toggle__moon { display: none; }
:root[data-theme="light"] [data-theme-toggle] .theme-toggle__sun { display: none; }
:root[data-theme="light"] [data-theme-toggle] .theme-toggle__moon { display: inline; }
[data-theme-toggle] .theme-toggle__sun svg, [data-theme-toggle] .theme-toggle__moon svg { width: 20px; height: 20px; }
.theme-toggle { border-color: var(--line-strong); }
.menu-btn { display: none; }

.nav-sheet {
  margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; border: 0; padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px);
  background: var(--bg); color: var(--fg);
}
.nav-sheet::backdrop { background: rgba(0, 0, 0, 0.5); }
.nav-sheet[open] { display: flex; flex-direction: column; }
.nav-sheet__top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.nav-sheet__links { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 4px; }
.nav-sheet__links a { display: block; padding: 10px 0; font-family: var(--font-display); font-size: 2rem; line-height: 1.2; text-decoration: none; border-bottom: 1px solid var(--line); }
.lang-ka .nav-sheet__links a { font-size: 1.5rem; }
.nav-sheet__tools { margin-top: auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-header__tools { margin-left: auto; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 620px) {
  .site-header__tools > .lang, .site-header__tools > .theme-toggle { display: none; }
  .brand__name { font-size: 0.72rem; letter-spacing: 0.18em; }
}
@media (max-width: 370px) { .brand__name span { display: none; } }

/* ---------- pattern (MONO CAPITALS in the identity letters) ---------- */
.pattern {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: var(--pattern);
  -webkit-mask: url("../logo/pattern-mono-capitals.svg") 0 0 / 860px auto repeat;
  mask: url("../logo/pattern-mono-capitals.svg") 0 0 / 860px auto repeat;
}
.pattern--band { -webkit-mask-image: url("../logo/pattern-mono-capitals.svg"), linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: url("../logo/pattern-mono-capitals.svg"), linear-gradient(transparent, #000 30%, #000 70%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; -webkit-mask-size: 860px auto, 100% 100%; mask-size: 860px auto, 100% 100%; -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; isolation: isolate; overflow: hidden; padding-block: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px) 96px; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--bg-sunk); }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__veil { position: absolute; inset: 0; background: var(--hero-vignette), var(--hero-veil); transition: background 0.35s ease; }
.hero__content { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__context { margin-bottom: clamp(24px, 4vh, 44px); color: var(--accent); }
.hero__title { margin: 0; color: var(--fg); width: 100%; display: flex; justify-content: center; }
.hero__mark { stroke-width: 1.5px; height: auto; }
.hero__mark--one { width: min(100%, 1040px); }
.hero__mark--two { display: none; width: min(88%, 420px); }
@media (max-width: 700px) {
  .hero__mark--one { display: none; }
  .hero__mark--two { display: block; stroke-width: 1.4px; }
}
.hero__by { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: clamp(22px, 3.5vh, 36px) 0 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); color: var(--fg-muted); letter-spacing: 0.02em; }
.hero__rule { width: 1px; height: clamp(36px, 7vh, 70px); background: var(--line-strong); }
.hero__offer { max-width: 36em; margin: clamp(22px, 3.5vh, 34px) 0 0; font-size: var(--fs-lead); color: var(--fg); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center; margin-top: clamp(26px, 4vh, 40px); }
.hero__toggle { position: absolute; right: var(--gutter); bottom: 28px; border-color: var(--line-strong); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.hero__toggle .i-play { display: none; }
.hero__toggle.is-paused .i-play { display: inline; }
.hero__toggle.is-paused .i-pause { display: none; }
.hero__scroll { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 44px; font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-muted); text-decoration: none; }
:lang(ka) .hero__scroll { text-transform: none; letter-spacing: 0.06em; font-size: 0.8rem; }
.hero__scroll i { width: 1px; height: 36px; background: linear-gradient(var(--fg-muted), transparent); }
@media (max-height: 700px), (max-width: 700px) { .hero__scroll { display: none; } }
@media (max-width: 700px) { .hero__rule { height: 28px; } .hero__by { gap: 12px; } .hero__context { margin-bottom: 20px; } }

/* title draws itself once; "by Mono Capitals" follows */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards; }
  .js .hero__by { animation: rise 1s ease 1.25s both; }
  .js .hero__context { animation: rise 0.9s ease 0.05s both; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ---------- sections ---------- */
.section { position: relative; padding-block: var(--section); }
.section > .container { position: relative; z-index: 1; }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 4vw, 64px); }
.section-head--small { margin-bottom: 28px; }
.section-head--small p { color: var(--fg-muted); margin-top: 12px; max-width: 62ch; }
.source-note { margin-top: 20px; font-size: 0.875rem; color: var(--fg-faint); max-width: 72ch; }

/* project */
.project__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 90px); align-items: end; }
.project__figure { margin: 0; }
.project__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.project__figure figcaption, .gallery__slide figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.875rem; color: var(--fg-muted); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(48px, 6vw, 96px) 0 0; border-top: 1px solid var(--line); }
.fact { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.fact + .fact { padding-left: 24px; }
.fact:last-child { border-right: 0; }
.fact dt { font-size: 0.9375rem; font-weight: 600; color: var(--fg); margin-top: 8px; }
.fact dd { margin: 0; }
.fact__value { order: -1; font-family: var(--font-display); font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1; font-weight: 500; font-variant-numeric: lining-nums; }
.fact__note { font-size: 0.8125rem; color: var(--fg-faint); }
@media (max-width: 900px) {
  .project__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding-left: 0; border-right: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* living */
.living { background: var(--bg-raise); overflow: hidden; }
.benefits { list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.benefit { padding: 8px clamp(18px, 2vw, 32px) 8px; border-right: 1px solid var(--line); }
.benefit .h3 { font-size: clamp(1.45rem, 1.2rem + 0.6vw, 1.75rem); margin-bottom: 16px; }
.lang-ka .benefit .h3 { font-size: 1.2rem; }
.benefit p { color: var(--fg-muted); margin: 0; }
.living .note { margin-top: clamp(36px, 4vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); max-width: 80ch; }
@media (max-width: 1000px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; border-left: 0; } .benefit { border-right: 0; border-top: 1px solid var(--line); padding: 24px 0 0; } }

/* ---------- catalog ---------- */
.filters { display: grid; gap: 22px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--bg-raise) 70%, transparent); }
.filters__group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 12px; }
.filters__group legend { float: left; padding: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }
:lang(ka) .filters__group legend { text-transform: none; letter-spacing: 0.02em; font-size: 0.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-grid; place-items: center; min-width: 48px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: 0.9375rem; font-weight: 500; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip input:hover + span { border-color: var(--fg); }
.chip input:checked + span { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.filters__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.filters__reset { margin-left: auto; }
.field { display: grid; gap: 8px; min-width: 0; }
.field__label { font-size: 0.875rem; font-weight: 600; color: var(--fg); }
.field--select .field__label { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }
:lang(ka) .field--select .field__label { text-transform: none; letter-spacing: 0.02em; }
select, input[type="text"], input[type="tel"], textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--bg); color: var(--fg); font-size: 1rem; line-height: 1.4;
}
select { min-width: 190px; appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--fg-faint); opacity: 1; }
select:hover, input:hover, textarea:hover { border-color: var(--fg-muted); }
@media (max-width: 640px) {
  .filters__group { grid-template-columns: 1fr; }
  .filters__row .field { flex: 1 1 140px; }
  select { min-width: 0; }
  .filters__reset { margin-left: 0; }
}

.catalog__count { margin: 28px 0 18px; font-size: 0.9375rem; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.apt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.apt-card article { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-raise); transition: border-color 0.25s, transform 0.25s; }
.apt-card article:hover { border-color: var(--line-strong); }
.apt-card__plan { display: block; width: 100%; padding: 14px; border: 0; background: var(--plan-bg); aspect-ratio: 1 / 1; }
.apt-card__plan img { width: 100%; height: 100%; object-fit: contain; }
.apt-card__noplan { display: grid; place-items: center; height: 100%; padding: 20px; color: #5a5146; font-size: 0.875rem; text-align: center; }
.apt-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 16px; flex: 1; }
.apt-card__meta { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
:lang(ka) .apt-card__meta { text-transform: none; letter-spacing: 0.02em; font-size: 0.8125rem; }
.apt-card__title { margin: 0; font-size: 1rem; font-weight: 600; }
.apt-card__area { margin: 4px 0 2px; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; font-variant-numeric: lining-nums; }
.apt-card__specs { margin: 6px 0 0; display: grid; gap: 4px; font-size: 0.875rem; }
.apt-card__specs div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.apt-card__specs div:first-child { border-top: 0; padding-top: 0; }
.apt-card__specs dt { color: var(--fg-muted); }
.apt-card__specs dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.apt-card__specs div:first-child dd { text-align: left; font-weight: 600; }
.apt-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
@media (max-width: 560px) {
  .apt-list { grid-template-columns: 1fr; gap: 12px; }
  .apt-card article { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
  .apt-card__plan { aspect-ratio: auto; height: 100%; padding: 8px; }
  .apt-card__body { padding: 14px 14px 12px; gap: 4px; }
  .apt-card__area { font-size: 1.8rem; }
  .apt-card__specs { font-size: 0.8125rem; }
  .apt-card__specs div { flex-direction: column; gap: 0; }
  .apt-card__specs dd { text-align: left; }
  .apt-card__actions { flex-wrap: wrap; justify-content: flex-start; gap: 4px 12px; }
}
.catalog__empty { padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--fg-muted); }
.catalog__more { display: flex; justify-content: center; margin-top: 32px; }

.typical { margin-top: clamp(72px, 8vw, 120px); }
.layouts { list-style: none; margin: 0; padding: 0 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 30%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.layout { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.layout figure { margin: 0; }
.layout img { width: 100%; aspect-ratio: 1525 / 1365; object-fit: cover; border-radius: 12px; background: #d9d3c8; }
.layout figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.layout__area { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.layout__rooms { color: var(--fg-muted); font-size: 0.9375rem; }
@media (max-width: 700px) { .layouts { grid-auto-columns: 78%; } }

.floors { margin-top: clamp(72px, 8vw, 120px); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); margin-bottom: 18px; }
.tab { min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--fg-muted); font-weight: 600; font-size: 0.875rem; }
.tab[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.floors__scroll { overflow-x: auto; border-radius: 12px; background: var(--plan-bg); overscroll-behavior-x: contain; }
.floors__scroll img { width: 100%; min-width: 900px; height: auto; }
.floors__hint { margin-top: 10px; font-size: 0.875rem; color: var(--fg-faint); }
@media (min-width: 1000px) { .floors__hint { display: none; } }

/* ---------- gallery ---------- */
.gallery { background: var(--bg-sunk); }
.gallery__stage { position: relative; }
.gallery__track { list-style: none; margin: 0; padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2)); display: grid; grid-auto-flow: column; grid-auto-columns: min(1100px, 88vw); gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { scroll-snap-align: center; min-width: 0; }
.gallery__slide figure { margin: 0; }
.gallery__slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--bg-raise); }
.gallery__slide.is-portrait img { object-fit: contain; background: var(--bg-raise); }
.gallery__controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 26px; }
.gallery__counter { margin: 0; min-width: 7ch; text-align: center; font-variant-numeric: tabular-nums; color: var(--fg-muted); font-size: 0.9375rem; }
.gallery__thumbs { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
.gallery__thumbs button { display: block; width: 92px; height: 58px; padding: 0; border: 1px solid transparent; border-radius: 6px; overflow: hidden; background: none; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { opacity: 0.85; }
.gallery__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); }

/* ---------- location ---------- */
.location__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.addresses { margin: 32px 0 36px; display: grid; gap: 20px; }
.addresses div { padding-left: 18px; border-left: 1px solid var(--accent); }
.addresses dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 4px; }
:lang(ka) .addresses dt { text-transform: none; letter-spacing: 0.02em; font-size: 0.875rem; }
.addresses dd { margin: 0; font-size: 1.0625rem; }
.nearby { list-style: none; margin: 16px 0 20px; padding: 0; columns: 2; column-gap: 28px; }
.nearby li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
@media (max-width: 520px) { .nearby { columns: 1; } }
.map { position: relative; min-height: 460px; border-radius: var(--radius); overflow: hidden; display: grid; align-items: end; isolation: isolate; background: var(--bg-raise); }
.map__bg { position: absolute; inset: 0; z-index: -1; }
.map__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7); }
.map::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 55%, transparent) 30%, color-mix(in srgb, var(--bg) 94%, transparent) 58%, var(--bg) 100%); }
.map__card { padding: clamp(20px, 3vw, 32px); }
.map__pin { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); margin-bottom: 14px; }
.map__pin svg { width: 24px; height: 24px; }
.map__addr { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem); line-height: 1.2; margin-bottom: 18px; }
.lang-ka .map__addr { font-size: 1.2rem; }
.map__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map__note { margin: 14px 0 0; font-size: 0.8125rem; color: var(--fg-muted); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; background: var(--bg-raise); }
@media (max-width: 900px) { .location__grid { grid-template-columns: 1fr; } .map { min-height: 420px; } }

/* ---------- purchase ---------- */
.purchase { background: var(--bg-raise); }
.purchase__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); }
.installment { position: relative; padding: clamp(26px, 3.4vw, 44px); border: 1px solid var(--accent); border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; background: var(--accent-soft); }
.installment p { color: var(--fg-muted); margin: 0; }
.installment__figure { font-family: var(--font-display); font-size: clamp(4.5rem, 3rem + 5vw, 7.5rem); line-height: 0.9; color: var(--accent) !important; }
.steps ol { list-style: none; margin: 20px 0 28px; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--accent); }
.steps li p { margin: 0; color: var(--fg-muted); }
@media (max-width: 900px) { .purchase__grid { grid-template-columns: 1fr; } }

/* ---------- developer ---------- */
.developer__text .lead { margin-bottom: 1.4rem; }
.developer__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.developer__mark { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); border-radius: 200px 200px 12px 12px; }
.developer__monogram { width: clamp(110px, 12vw, 160px); height: auto; }
.developer__word { width: 100%; max-width: 300px; height: auto; color: var(--fg); }
@media (max-width: 800px) { .developer__grid { grid-template-columns: 1fr; } .developer__mark { max-width: 360px; } }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 90px); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform 0.25s; }
.qa summary i svg { width: 18px; height: 18px; }
.qa[open] summary i { transform: rotate(45deg); }
.qa__a { padding: 0 56px 22px 0; color: var(--fg-muted); }
@media (max-width: 800px) { .faq__grid { grid-template-columns: 1fr; } .qa__a { padding-right: 0; } }

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.direct { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.direct .h4 { margin-bottom: 16px; }
.direct__label { margin: 16px 0 2px; font-size: 0.8125rem; color: var(--fg-muted); }
.direct__phone { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 0; }
.direct__phone a { font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.1; text-decoration: none; font-variant-numeric: lining-nums; }
.direct__links { list-style: none; margin: 4px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.direct__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.lead-card { position: relative; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-raise); box-shadow: var(--shadow); }
.lead-form { display: grid; gap: 20px; }
.field__hint { margin: 0; font-size: 0.8125rem; color: var(--fg-muted); }
.field__opt { font-weight: 400; color: var(--fg-muted); }
.field__error { margin: 0; font-size: 0.875rem; color: var(--danger); font-weight: 500; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.selected { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent); }
.selected__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
:lang(ka) .selected__label { text-transform: none; letter-spacing: 0.02em; }
.selected__value { flex: 1; min-width: 0; font-weight: 600; }
.form-summary, .form-status { margin: 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--danger); color: var(--fg); background: color-mix(in srgb, var(--danger) 10%, transparent); font-size: 0.9375rem; }
.consent-line { margin: 0; font-size: 0.8125rem; color: var(--fg-muted); }
.lead-success { text-align: center; padding: 24px 0; display: grid; justify-items: center; gap: 12px; }
.lead-success__mark { margin: 0; }
.success-mark { width: 64px; height: auto; }
.lead-success p { color: var(--fg-muted); max-width: 36ch; margin: 0; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .lead-card { order: -1; } .contact__intro { display: contents; } .contact__intro > .eyebrow, .contact__intro > .h2, .contact__intro > .lead { order: -2; } }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; padding-block: clamp(72px, 8vw, 120px) calc(40px + var(--bar-h)); border-top: 1px solid var(--line); background: var(--bg-sunk); }
.pattern--footer { -webkit-mask-size: 1100px auto; mask-size: 1100px auto; }
.site-footer__inner { position: relative; z-index: 1; display: grid; gap: 36px; }
.site-footer__brand { display: grid; gap: 14px; justify-items: start; }
.site-footer__lockup, .site-footer__by { margin: 0; width: 100%; }
.footer-mark { width: min(100%, 980px); height: auto; stroke-width: 1.2px; }
.site-footer__by { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.site-footer__by-word { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1; }
.footer-by__mark { width: 30px; height: 30px; flex: none; }
.footer-by__mark.mc-mark, .footer-by__mark .mg-c { color: var(--accent); }
.footer-by { width: min(56vw, 240px); height: auto; color: var(--accent); }
.lang--footer ul { display: inline-flex; }
.site-footer__cols { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--fg-muted); font-size: 0.9375rem; }
.site-footer__cols p { margin: 0 0 6px; }
.site-footer__links { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 2px; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.site-footer__fine { margin: 0; font-size: 0.8125rem; color: var(--fg-faint); max-width: 90ch; }
@media (max-width: 700px) { .site-footer__cols { grid-template-columns: 1fr; } }

/* ---------- mobile bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  :root { --bar-h: 76px; }
  .mobile-bar {
    position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    transition: transform 0.3s ease;
  }
  .mobile-bar .btn { padding-inline: 1em; font-size: 0.75rem; letter-spacing: 0.1em; }
  .mobile-bar svg { width: 18px; height: 18px; }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .hero { padding-bottom: 120px; }
  .hero__toggle { bottom: 20px; }
}

/* ---------- apartment dialog ---------- */
.apt-dialog { width: min(1180px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--fg); overflow: hidden; }
.apt-dialog::backdrop { background: rgba(6, 5, 4, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.apt-dialog[open] { display: flex; }
.apt-dialog__inner { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 32px); }
.apt-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px clamp(18px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.apt-dialog__head .eyebrow { margin-bottom: 6px; }
.apt-dialog__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); overflow: auto; overscroll-behavior: contain; }
.plan-view { position: relative; background: var(--plan-bg); min-height: 360px; }
.plan-view__scroll { height: 100%; max-height: calc(100dvh - 140px); overflow: auto; display: grid; place-items: center; padding: 16px; }
.plan-view__scroll img { width: 100%; max-width: 640px; height: auto; transition: width 0.25s ease; }
.plan-view.is-zoomed .plan-view__scroll { place-items: start; }
.plan-view.is-zoomed .plan-view__scroll img { width: 200%; max-width: none; }
.plan-view__tools { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.plan-view__tools .icon-btn { background: #fffdf8; color: #1b1814; border-color: rgba(27, 24, 20, 0.25); }
.plan-view__noplan { padding: 40px; color: #5a5146; }
.apt-dialog__side { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.apt-dialog__area { margin: 0; font-family: var(--font-display); font-size: 3.2rem; line-height: 1; }
.specs { margin: 0; display: grid; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.specs dt { color: var(--fg-muted); }
.specs dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.apt-dialog__actions { display: grid; gap: 10px; }
.apt-dialog__nav { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.apt-dialog__nav svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .apt-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .apt-dialog__inner { max-height: 100dvh; }
  .apt-dialog__head { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .apt-dialog__body { grid-template-columns: 1fr; }
  .plan-view__scroll { max-height: 58dvh; }
  .apt-dialog__side { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- consent ---------- */
.consent { position: fixed; left: 16px; bottom: calc(16px + var(--bar-h) + env(safe-area-inset-bottom, 0px)); z-index: 35; max-width: 420px; padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 0.875rem; display: grid; gap: 12px; }
.consent p { margin: 0; }
.consent div { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 460px) { .consent { right: 16px; } }

/* ---------- document pages ---------- */
.doc { padding-block: calc(var(--header-h) + 72px) 96px; max-width: calc(820px + 2 * var(--gutter)); }
.doc section { margin-top: 36px; }
.doc .h4 { margin-bottom: 10px; }
.doc p { color: var(--fg-muted); }
.nf { text-align: left; display: grid; gap: 20px; padding-top: 96px; }
.nf__mark { margin: 0; }
.nf__monogram { width: 64px; height: auto; }
.nf__block { border-top: 1px solid var(--line); padding-top: 24px; }
.nf__links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- chooser (x-default root) ---------- */
.chooser { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 48px 16px; isolation: isolate; overflow: hidden; }
.chooser__inner { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 1100px; }
.chooser__title { margin: 0; width: 100%; display: flex; justify-content: center; color: var(--fg); }
.chooser__langs { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chooser__langs .btn { flex-direction: column; gap: 2px; min-width: 190px; min-height: 72px; text-transform: none; letter-spacing: 0.02em; }
.chooser__label { font-size: 1rem; font-weight: 600; }
.chooser__hint { font-size: 0.75rem; font-weight: 400; color: var(--fg-muted); }
.chooser .is-last { border-color: var(--accent); }

/* ---------- reveal (content is visible at rest; JS only adds a gentle lift) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] { transform: translateY(18px); opacity: 0.35; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.9s ease; }
  .reveal-ready [data-reveal].is-in { transform: none; opacity: 1; }
}

@media (forced-colors: active) {
  .btn, .chip span, .lang ul { border: 1px solid CanvasText; }
  .hero__veil, .pattern { display: none; }
}
@media print {
  .site-header, .mobile-bar, .hero__media, .consent, .gallery__controls, .gallery__thumbs, .map { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- facade -> floor -> apartment picker ---------- */
.picker__stage { margin-top: clamp(28px, 4vw, 48px); }
.picker__frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-sunk); }
.picker__img img { display: block; width: 100%; height: auto; }
.picker__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pk-band rect { fill: var(--accent); fill-opacity: 0; stroke: #fffaf0; stroke-opacity: 0; stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill-opacity 0.2s, stroke-opacity 0.2s; }
.pk-band text { fill: #fffaf0; font: 600 30px var(--font-body); opacity: 0; transition: opacity 0.2s; paint-order: stroke; stroke: rgba(12, 11, 9, 0.6); stroke-width: 6px; }
.pk-band:hover rect, .pk-band:focus-visible rect { fill-opacity: 0.42; stroke-opacity: 0.9; }
.pk-band:hover text, .pk-band:focus-visible text { opacity: 1; }
.pk-band:focus { outline: none; }
.pk-band:focus-visible rect { stroke: var(--focus); stroke-width: 3; stroke-opacity: 1; }
@media (hover: none) { .pk-band rect { fill-opacity: 0.08; stroke-opacity: 0.35; } }
.picker__badge { position: absolute; left: 14px; top: 14px; pointer-events: none; }
.picker__tip { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 14px)); padding: 8px 12px; border-radius: 8px; background: rgba(12, 11, 9, 0.9); color: #f3ecdf; font-size: 0.875rem; font-weight: 500; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); }
.picker__hint { margin-top: 12px; font-size: var(--fs-small); color: var(--fg-muted); }
.picker__hint--scroll { color: var(--fg-faint); }
@media (min-width: 1000px) { .picker__hint--scroll { display: none; } }
.picker__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.picker__bar .btn svg { width: 16px; height: 16px; }
.picker__stepper { display: flex; align-items: center; gap: 14px; }
.picker__floor-title { margin: 0; min-width: 10ch; text-align: center; }
.picker__floor-title:focus { outline: none; }
.picker__plan-scroll { position: relative; overflow-x: auto; border-radius: var(--radius); background: var(--plan-bg); overscroll-behavior-x: contain; }
.picker__plan { position: relative; min-width: 1100px; }
.picker__plan img { display: block; width: 100%; height: auto; }
.picker__plan-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pk-apt polygon { fill: var(--accent); fill-opacity: 0.1; stroke: #fffaf0; stroke-opacity: 0.55; stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill-opacity 0.2s, stroke-opacity 0.2s; }
.pk-apt:hover polygon, .pk-apt:focus-visible polygon { fill-opacity: 0.5; stroke-opacity: 1; stroke-width: 2.5; }
.pk-apt:focus { outline: none; }
.pk-apt:focus-visible polygon { stroke: var(--focus); stroke-width: 3; }
.pk-apt__tag circle { fill: rgba(12, 11, 9, 0.78); stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pk-apt__tag text { fill: #f3ecdf; font: 600 24px var(--font-body); text-anchor: middle; }
.pk-apt:hover .pk-apt__tag circle, .pk-apt:focus-visible .pk-apt__tag circle { fill: var(--accent); }
.pk-apt:hover .pk-apt__tag text, .pk-apt:focus-visible .pk-apt__tag text { fill: #14110d; }
.picker__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chip-btn { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: transparent; color: var(--fg); font: inherit; font-size: 0.9375rem; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.chip-btn b { font-weight: 600; }
.chip-btn span { color: var(--fg-muted); }
.chip-btn:hover { border-color: var(--fg); }
.chip-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* apartment dialog: 3D / plan switch */
.apt-dialog__media { display: flex; flex-direction: column; min-width: 0; background: var(--plan-bg); }
.view-switch { display: inline-flex; align-self: flex-start; gap: 4px; margin: 14px 16px 0; padding: 4px; border-radius: var(--radius-pill); background: rgba(27, 24, 20, 0.08); }
.view-switch__btn { min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: transparent; color: #3d352c; font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.view-switch__btn[aria-selected="true"] { background: #1b1814; color: #f3ecdf; }
.view-switch__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.view-switch__btn:focus-visible { outline: 2px solid #8a6d3f; outline-offset: 2px; }
.v3d { margin: 0; display: flex; flex-direction: column; flex: 1; }
.v3d[hidden] { display: none; }
.v3d__btn { display: grid; place-items: center; flex: 1; width: 100%; padding: 16px; border: 0; background: transparent; cursor: zoom-in; }
.v3d__btn img { width: 100%; max-width: 760px; max-height: calc(100dvh - 300px); height: auto; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(27, 24, 20, 0.22)); transition: transform 0.35s ease; }
.v3d__btn:hover img { transform: scale(1.02); }
.v3d__btn:focus-visible { outline: 2px solid #8a6d3f; outline-offset: -6px; border-radius: 12px; }
.v3d figcaption { display: grid; gap: 4px; padding: 0 18px 16px; color: #5a5146; font-size: 0.8125rem; }
.v3d__hint { font-weight: 600; color: #3d352c; }
.plan-view[hidden] { display: none; }
.plan-view__no3d { margin: 0; padding: 0 18px 16px; color: #5a5146; font-size: 0.8125rem; }
@media (max-width: 899px) { .v3d__btn img { max-height: 50dvh; } }
@media (prefers-reduced-motion: reduce) { .v3d__btn img, .pk-band rect, .pk-apt polygon { transition: none; } }
.apt-dialog__media .plan-view__scroll { max-height: calc(100dvh - 210px); }
@media (max-width: 860px) { .apt-dialog__media .plan-view__scroll { max-height: 58dvh; } }
@media (max-width: 600px) {
  .picker__list { display: grid; grid-template-columns: 1fr 1fr; }
  .chip-btn { flex-direction: column; gap: 2px; align-items: flex-start; border-radius: 14px; padding: 8px 12px; font-size: 0.875rem; }
  .picker__floor-title { font-size: 1.35rem; min-width: 0; }
}

/* floor buttons (like a floor selector strip) */
.picker__floors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.picker__floors-label { margin-right: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--fg-muted); }
.picker__fbtn { min-width: 44px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.picker__fbtn:hover { border-color: var(--fg); }
.picker__fbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #14110d; }
.picker__fbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* 3D cut-away of the building at the chosen floor */
.pk3d { position: relative; overflow: hidden; border-radius: var(--radius); background: radial-gradient(120% 90% at 50% 70%, #2a3a2a 0%, #151a14 60%, #0d0f0c 100%); }
[data-theme="light"] .pk3d { background: radial-gradient(120% 90% at 50% 70%, #dfe6d6 0%, #cdd6c2 55%, #b9c3ad 100%); }
.pk3d__stage { display: grid; place-items: center; min-height: calc(var(--pk-W, 1000px) * 0.62); padding: 40px 0 60px; perspective: 2600px; perspective-origin: 50% 0%; }
.pk3d__scene {
  --W: 1000px; --n: 5; --D: calc(var(--W) * 0.24167); --h: calc(var(--W) / 26.55); --H: calc(var(--h) * var(--n));
  position: relative; width: var(--W); height: var(--D); transform-style: preserve-3d;
  transform: translateY(calc(var(--H) * 0.35)) rotateX(58deg) rotateZ(-16deg);
}
.pk3d__top { position: absolute; inset: 0; transform: translateZ(var(--H)); transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.pk3d__top img { display: block; width: 100%; height: 100%; box-shadow: 0 0 0 2px rgba(255, 250, 240, 0.4); }
.pk3d__top .picker__plan-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pk3d__face { position: absolute; backface-visibility: hidden; transition: height 0.6s cubic-bezier(.2,.7,.2,1), top 0.6s cubic-bezier(.2,.7,.2,1), width 0.6s cubic-bezier(.2,.7,.2,1), left 0.6s cubic-bezier(.2,.7,.2,1); }
.pk3d__front, .pk3d__back { left: 0; width: var(--W); height: var(--H); background-image: url("../img/floors/facade-strip-1689.webp"); background-size: 100% calc(var(--h) * 10); background-position: 50% 100%; background-repeat: no-repeat; }
.pk3d__front { top: calc(var(--D) - var(--H)); transform-origin: 50% 100%; transform: rotateX(-90deg); }
.pk3d__back { top: 0; transform-origin: 50% 0%; transform: rotateX(90deg) rotateY(180deg); filter: brightness(0.7); }
.pk3d__left, .pk3d__right { top: 0; width: var(--H); height: var(--D); background: repeating-linear-gradient(90deg, #b4583d 0 calc(var(--h) - 2px), #8f4230 calc(var(--h) - 2px) var(--h)); }
.pk3d__left { left: calc(var(--H) * -1); transform-origin: 100% 50%; transform: rotateY(90deg); filter: brightness(0.8); }
.pk3d__right { left: var(--W); transform-origin: 0% 50%; transform: rotateY(-90deg); }
.pk3d__shadow { position: absolute; inset: -6% -3%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); filter: blur(8px); transform: translateZ(-1px); }
.pk3d .picker__badge { top: 14px; left: 14px; }
.pk3d .pk-apt polygon { fill-opacity: 0.18; stroke-width: 2; }
.pk3d .pk-apt:hover polygon, .pk3d .pk-apt:focus-visible polygon { fill-opacity: 0.62; }
.pk3d .pk-apt__tag text { font-size: 30px; }
@media (max-width: 700px) { .pk3d__stage { min-height: 0; padding: 36px 0 40px; perspective: 1400px; } .pk3d__scene { transform: translateY(calc(var(--H) * 0.3)) rotateX(52deg) rotateZ(-8deg); } .pk3d .pk-apt__tag text { font-size: 44px; } }
@media (prefers-reduced-motion: reduce) { .pk3d__top, .pk3d__face { transition: none; } }
@media (max-width: 700px) { .pk3d .picker__badge { top: auto; bottom: 10px; } }
.site-nav a { white-space: nowrap; }
