/* Rezidenca Lumina demo
   1 fonts and tokens     2 base and shared parts   3 header        4 hero
   5 floor picker         6 floor plan              7 apartment     8 tour
   9 comparison          10 calculator             11 gallery      12 location
  13 specification       14 timeline               15 enquiry      16 footer
  17 scroll motion       18 polygon editor (?edit) 19 reduced motion */

/* ---------- 1 fonts and tokens ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0106-0107, U+010C-010D, U+0110-0111, U+0160-0161, U+017D-017E;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0106-0107, U+010C-010D, U+0110-0111, U+0160-0161, U+017D-017E;
}

:root {
  --ink: #131416;          /* anthracite around the photographs */
  --coal: #1a1c1f;
  --paper: #f0ebe3;
  --concrete: #c9c2b6;
  --stone: #969087;
  --oak: #b88a5b;
  --brass: #c8a25a;        /* the one accent */
  --brass-hi: #f0d9a4;
  --brass-ink: #1c1608;
  --free: #7fb58a;
  --reserved: #dab655;
  --sold: #7d8086;

  /* semantic colours: dark by default, swapped inside .paper */
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-2: var(--concrete);
  --fg-3: var(--stone);
  --rule: rgba(240, 235, 227, 0.12);
  --rule-2: rgba(240, 235, 227, 0.24);
  --accent: var(--brass);
  --panel: var(--coal);

  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(20px, 4.5vw, 72px);
  --head-h: 72px;
  --sec: clamp(84px, 10.5vw, 164px);
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-zoom: cubic-bezier(0.65, 0, 0.2, 1);
}

.paper {
  --bg: #ebe5db;
  --fg: #17181a;
  --fg-2: #4f4c47;
  --fg-3: #5f5a54;
  --rule: rgba(23, 24, 26, 0.14);
  --rule-2: rgba(23, 24, 26, 0.3);
  --accent: #7d5c1c;
  --panel: #e2dbcf;
  background: var(--bg);
  color: var(--fg);
}

/* ---------- 2 base and shared parts ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: 'cv11', 'ss03';
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.has-tray body { padding-bottom: 76px; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.paper :focus-visible { outline-color: #17181a; }

.wrap { width: min(1480px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--paper); color: var(--ink); text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow__n { font-variant-numeric: tabular-nums; color: var(--fg-3); letter-spacing: 0.12em; }
.h2 { font: 300 clamp(36px, 5vw, 76px)/1.02 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.h3 { font: 600 12px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.h3--big { font: 300 clamp(28px, 3.2vw, 46px)/1.08 var(--display); letter-spacing: -0.02em; text-transform: none; color: var(--fg); }
.lead { color: var(--fg-2); max-width: 46ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; }
.note { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--fg-3); max-width: 62ch; }
.legal { margin-top: 28px; font-size: 13px; color: var(--fg-3); }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule-2); color: var(--fg-2); }
.link:hover { color: var(--fg); text-decoration-color: currentColor; }

.sec { padding: var(--sec) 0; border-top: 1px solid var(--rule); }
.sec__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 6vw, 110px); align-items: end; margin-bottom: clamp(40px, 5vw, 76px); }
.sec__head .h2 { margin-top: 20px; }
.sec__head .lead { justify-self: end; padding-bottom: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 2px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.btn--brass { background: var(--brass); color: var(--brass-ink); }
.btn--brass:hover { background: var(--brass-hi); }
.btn--brass:hover svg { transform: translateX(4px); }
.btn--line { background: transparent; border-color: var(--rule-2); color: var(--fg); padding: 0 22px; }
.btn--line:hover { border-color: var(--accent); color: var(--brass-hi); }
.btn--line[aria-pressed='true'] { border-color: var(--brass); color: var(--brass-hi); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--fg-2); transition: color 0.2s; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.back:hover { color: var(--brass-hi); }
.back:hover svg { transform: translateX(-4px); }

.tag { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--sans); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: var(--free); }
.tag::before { content: ''; width: 7px; height: 7px; background: currentColor; flex: none; }
.tag--reserved { color: var(--reserved); }
.tag--sold { color: var(--sold); }
.tag--big { font-size: 12px; padding: 10px 14px; border: 1px solid currentColor; }
.dot { width: 9px; height: 9px; background: var(--free); flex: none; }
.dot--reserved { background: var(--reserved); }
.dot--sold { background: var(--sold); }

/* form fields */
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.field__label output { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--fg); font-variant-numeric: tabular-nums; }
.field__eg { font-style: normal; font-weight: 500; letter-spacing: 0.06em; color: var(--accent); }
.field input:not([type='range']):not([type='checkbox']), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0;
  font-size: 17px; color: var(--fg);
  transition: border-color 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 28px; background: no-repeat right 4px center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9c2b6' stroke-width='2'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E"); text-overflow: ellipsis; }
.field select option { background: var(--coal); color: var(--paper); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--brass-hi); box-shadow: 0 1px 0 var(--brass-hi); }
.field [aria-invalid='true'] { border-color: #e08a6d !important; }
.field__err { min-height: 18px; font-size: 13px; color: #e9a089; }
.field__money { position: relative; display: block; }
.field__money input { padding-right: 34px !important; font-variant-numeric: tabular-nums; }
.field__money i { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--fg-3); }
input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
input[type='number']::-webkit-outer-spin-button, input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.check { position: relative; display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.check input { position: absolute; left: 0; top: 0; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check__box { width: 22px; height: 22px; flex: none; border: 1px solid var(--rule-2); display: grid; place-items: center; transition: background-color 0.2s, border-color 0.2s; }
.check__box::after { content: ''; width: 10px; height: 6px; border-left: 2px solid var(--brass-ink); border-bottom: 2px solid var(--brass-ink); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 0.2s var(--ease); }
.check input:checked + .check__box { background: var(--brass); border-color: var(--brass); }
.check input:checked + .check__box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.check:hover .check__box { border-color: var(--fg-2); }

.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
.slider::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--brass) var(--p), var(--rule-2) var(--p)); }
.slider::-moz-range-track { height: 2px; background: var(--rule-2); }
.slider::-moz-range-progress { height: 2px; background: var(--brass); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; background: var(--paper); border: 0; border-radius: 0; transform: rotate(45deg); }
.slider::-moz-range-thumb { width: 16px; height: 16px; background: var(--paper); border: 0; border-radius: 0; transform: rotate(45deg); }
.slider:focus-visible { outline: none; }
.slider:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.slider:focus-visible::-moz-range-thumb { outline: 2px solid var(--brass-hi); outline-offset: 3px; }

/* table of areas, also used for the price list of extras */
.areas { font-size: 15px; }
.areas th, .areas td { padding: 13px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; color: var(--fg-2); }
.areas td { text-align: right; font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; }
.areas__sum th, .areas__sum td { font-weight: 600; color: var(--fg); border-bottom-color: var(--rule-2); }
.areas__extra th, .areas__extra td { color: var(--fg-3); }

/* energy scale, A1 to G */
.energy { display: grid; gap: 4px; margin-top: 18px; max-width: 420px; }
.energy__row { display: flex; align-items: center; gap: 12px; height: 22px; }
.energy__name { width: 24px; flex: none; font-size: 12px; font-weight: 700; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.energy__row.is-on .energy__name { color: var(--fg); }
.energy__bar { width: var(--w); height: 100%; background: var(--c); clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%); opacity: 0.42; }
.energy__row.is-on .energy__bar { opacity: 1; }
.energy__mark { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 10px 0 16px; height: 22px; line-height: 22px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 700; clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); }
.energy__mark small { font-size: 11px; font-weight: 500; white-space: nowrap; }

/* ---------- 3 header ---------- */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--head-h); padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.head.is-solid, html:not([data-view='home']) .head, .menu-open .head { background: var(--ink); border-color: var(--rule); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; min-width: 0; }
.brand__mark { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--brass); stroke-width: 1.6; }
.brand__name { font: 400 20px/1 var(--display); letter-spacing: 0.01em; white-space: nowrap; }
.brand__place { padding-left: 12px; border-left: 1px solid var(--rule-2); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--concrete); }
.head__nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.head__nav a { position: relative; padding: 8px 0; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--paper); white-space: nowrap; }
.head__nav a:not(.head__cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--brass-hi); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.head__nav a:not(.head__cta):hover::after { transform: scaleX(1); }
.head__nav .head__cta { padding: 9px 16px; border: 1px solid var(--rule-2); border-radius: 2px; font-weight: 600; transition: border-color 0.2s, color 0.2s; }
.head__nav .head__cta:hover { border-color: var(--brass); color: var(--brass-hi); }
.lang { display: flex; border: 1px solid var(--rule-2); border-radius: 2px; flex: none; }
.lang button { min-width: 40px; height: 34px; padding: 0 8px; background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--concrete); transition: background-color 0.2s, color 0.2s; }
.lang button + button { border-left: 1px solid var(--rule-2); }
.lang button:hover { color: var(--paper); }
.lang button[aria-pressed='true'] { background: var(--paper); color: var(--ink); }
.head__menu { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; flex: none; }
.head__menu span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--paper); transition: transform 0.3s var(--ease); }
.head__menu span:first-child { top: 18px; }
.head__menu span:last-child { top: 25px; }
.menu-open .head__menu span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .head__menu span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 4 hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(100svh, 640px);
  display: grid; grid-template-rows: 1fr auto;
  padding: var(--head-h) var(--gutter) 0;
  overflow: hidden;
  background: #2a3442;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 50%;
  transform-origin: 68% 56%;
  animation: kenburns 32s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.075) translate3d(-0.8%, -0.6%, 0); }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 16, 20, 0.78) 0%, rgba(14, 16, 20, 0.5) 24%, rgba(14, 16, 20, 0.12) 46%, rgba(14, 16, 20, 0) 60%),
    linear-gradient(180deg, rgba(14, 16, 20, 0.5) 0%, rgba(14, 16, 20, 0) 22%, rgba(14, 16, 20, 0) 56%, rgba(19, 20, 22, 0.86) 88%, var(--ink) 100%);
}
.hero__body { align-self: center; max-width: 560px; padding: 40px 0 56px; }
.hero__title { margin: 22px 0 24px; font: 300 clamp(54px, 6.5vw, 112px)/0.95 var(--display); letter-spacing: -0.035em; }
.hero__title em { display: block; font-style: normal; color: var(--brass-hi); padding-left: 0.32em; }
.hero__sub { max-width: 42ch; margin-bottom: 34px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; color: rgba(240, 235, 227, 0.86); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0 0 34px; border-top: 1px solid var(--rule-2); }
.stat { padding: 22px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--rule); }
.stat dd { font: 300 clamp(30px, 3.4vw, 50px)/1.05 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.stat dt { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--concrete); }

/* ---------- 5 floor picker ---------- */
.picker { border-top: 0; }
.picker__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(28px, 3vw, 44px); }
.picker__intro .h2 { margin: 20px 0 16px; }
.lead--touch { display: none; }

.seg { display: inline-flex; padding: 4px; border: 1px solid var(--rule-2); border-radius: 999px; flex: none; }
.seg button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 18px;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--concrete);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.seg svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.seg button:hover { color: var(--paper); }
.seg button[aria-pressed='true'] { background: var(--brass); color: var(--brass-ink); }

.filters { padding: 22px 0 24px; margin-bottom: 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.filters__body { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: 20px clamp(24px, 3.4vw, 56px); align-items: end; }
.filters__toggle { display: none; width: 100%; min-height: 48px; align-items: center; gap: 12px; padding: 0; background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper); }
.filters__toggle output { margin-left: auto; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--brass-hi); font-variant-numeric: tabular-nums; }
.filters__toggle svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.filters.is-open .filters__toggle svg { transform: rotate(180deg); }
.filters__group { display: grid; gap: 12px; min-width: 0; }
.filters__label { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.filters__label output { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--paper); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chips { display: flex; border: 1px solid var(--rule-2); border-radius: 2px; }
.chips button { min-width: 44px; height: 40px; padding: 0 12px; background: none; border: 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--concrete); font-variant-numeric: tabular-nums; transition: background-color 0.2s, color 0.2s; }
.chips button + button { border-left: 1px solid var(--rule-2); }
.chips button:hover { color: var(--paper); }
.chips button[aria-pressed='true'] { background: var(--paper); color: var(--ink); }
.range { position: relative; height: 40px; }
.range__track { position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--rule-2); }
.range__fill { position: absolute; top: 0; height: 100%; background: var(--brass); }
.range__in { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 40px; margin: 0; background: none; pointer-events: none; }
.range__in::-webkit-slider-runnable-track { height: 40px; background: none; }
.range__in::-moz-range-track { height: 40px; background: none; }
.range__in::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; margin-top: 11px; background: var(--paper); border: 0; border-radius: 0; transform: rotate(45deg); cursor: grab; }
.range__in::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; background: var(--paper); border: 0; border-radius: 0; transform: rotate(45deg); cursor: grab; }
.range__in:focus-visible { outline: none; }
.range__in:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.range__in:focus-visible::-moz-range-thumb { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
.filters__group--end { justify-items: end; gap: 10px; }
.filters .check { align-items: center; color: var(--paper); }
.filters__result { display: flex; gap: 16px; align-items: baseline; font-size: 13px; color: var(--stone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.filters.is-active .filters__result output { color: var(--brass-hi); }

.stage-wrap { position: relative; width: min(1480px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.stage {
  --cx: 40; --cy: 96; --cw: 1920; --ch: 970;   /* visible part of the 2000 x 1116 photo */
  position: relative; overflow: hidden;
  width: 100%;                                  /* a set height (open floor) must not narrow it */
  aspect-ratio: var(--cw) / var(--ch);
  background: #20242b;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--rule);
  transition: height 0.76s var(--ease-zoom);
}
.stage.no-anim, .stage.no-anim .stage__layer { transition: none; }
.stage__layer {
  position: absolute;
  left: calc(-100% * var(--cx) / var(--cw));
  top: calc(-100% * var(--cy) / var(--ch));
  width: calc(100% * 2000 / var(--cw));
  aspect-ratio: 2000 / 1116;
  transform-origin: 0 0;
  transition: transform 0.76s var(--ease-zoom);
  will-change: transform;
}
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.stage__img--day { opacity: 0; transition: opacity 0.9s ease; }
.stage[data-view='day'] .stage__img--day { opacity: 1; }
.stage__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.stage__dim { fill: #0b0c0e; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.stage.has-active .stage__dim { opacity: 0.56; }
.stage[data-view='day'].has-active .stage__dim { opacity: 0.5; }

.floor {
  fill: rgba(200, 162, 90, 0);
  stroke: rgba(240, 217, 164, 0);
  stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round;
  cursor: pointer; outline: none;
  transition: fill 0.28s ease, stroke 0.28s ease;
}
.floor.is-sweep { fill: rgba(200, 162, 90, 0.26); stroke: rgba(240, 217, 164, 0.8); }
.floor.is-soldout { fill: url(#hatch); }
.floor.is-soldout.is-sweep { stroke: rgba(210, 208, 204, 0.6); }
.floor.is-match { fill: rgba(200, 162, 90, 0.2); stroke: rgba(240, 217, 164, 0.85); }
.floor.is-nomatch { fill: rgba(11, 12, 14, 0.58); }
.floor.is-active { fill: rgba(200, 162, 90, 0.36); stroke: var(--brass-hi); stroke-width: 2; }
.floor.is-soldout.is-active { fill: url(#hatch-on); stroke: #d8d5cf; }
.floor.is-nomatch.is-active { fill: rgba(60, 62, 66, 0.5); stroke: #d8d5cf; }
.floor:focus-visible { stroke: #fff; stroke-width: 2.5; }
.hatch__bg { fill: rgba(22, 24, 27, 0.4); }
.hatch__bg--on { fill: rgba(22, 24, 27, 0.3); }
.hatch__line { fill: rgba(206, 204, 199, 0.4); }
.hatch__line--on { fill: rgba(236, 234, 229, 0.78); }
.stage[data-view='day'] .hatch__bg { fill: rgba(22, 24, 27, 0.46); }
.stage[data-view='day'] .hatch__line { fill: rgba(232, 230, 225, 0.5); }

.stage__tag { pointer-events: none; }
.stage__tag rect { fill: var(--brass); }
.stage__tag text { fill: var(--brass-ink); font: 700 26px var(--sans); font-variant-numeric: tabular-nums; }
.stage.is-zoomed .stage__tags { display: none; }

.stage.is-zoomed .floor { pointer-events: none; }
.stage.is-zoomed .floor:not(.is-active) { fill: rgba(200, 162, 90, 0); stroke: rgba(240, 217, 164, 0); }
.stage.is-zoomed .floor.is-soldout:not(.is-active) { fill: url(#hatch); }
.stage.is-zoomed .floor.is-active { fill: rgba(200, 162, 90, 0.16); }
.stage.is-zoomed .floor.is-soldout.is-active { fill: url(#hatch); }
.stage.is-zoomed .stage__dim { opacity: 0.62; }

.stage__back {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px 0 12px;
  background: rgba(19, 20, 22, 0.9); border: 1px solid var(--rule-2); border-radius: 2px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0s 0.3s, border-color 0.2s, color 0.2s;
}
.stage__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stage__back:hover { border-color: var(--brass); color: var(--brass-hi); }
.stage.is-zoomed .stage__back { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease 0.45s, transform 0.3s var(--ease) 0.45s, visibility 0s 0s, border-color 0.2s, color 0.2s; }

.tip {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 16px 12px;
  background: rgba(15, 16, 18, 0.96);
  border: 1px solid rgba(200, 162, 90, 0.55); border-radius: 2px;
  font-size: 14px; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums;
  pointer-events: none; opacity: 0;
  transition: opacity 0.18s ease;
  will-change: transform;
}
.tip.is-on { opacity: 1; }
.tip b { font: 400 17px/1.2 var(--display); color: var(--brass-hi); }
.tip span { color: var(--paper); }
.tip span::before { content: '·'; margin-right: 10px; color: var(--stone); }
.tip .tag { margin-left: 4px; }
.tip--none { border-color: rgba(190, 188, 184, 0.45); }
.tip--none b { color: #d8d5cf; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 16px; font-size: 13px; color: var(--concrete); }
.legend li { display: flex; align-items: center; gap: 9px; }
.legend__sw { width: 22px; height: 12px; border: 1px solid; flex: none; }
.legend__sw--free { background: rgba(200, 162, 90, 0.45); border-color: var(--brass-hi); }
.legend__sw--none { border-color: #8b8d91; background: repeating-linear-gradient(45deg, rgba(186, 184, 180, 0.75) 0 2px, rgba(40, 42, 46, 0.6) 2px 5px); }
.legend__sw--match { background: var(--brass); border-color: var(--brass); }
.legend .legend__match { display: none; }
.picker.has-filter .legend .legend__match { display: flex; }
.picker.is-floor > .legend { display: none; }

.pick {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding: 14px 14px 14px 18px;
  background: var(--coal); border: 1px solid rgba(200, 162, 90, 0.5); border-radius: 2px;
}
.pick__text { display: grid; gap: 2px; min-width: 0; }
.pick__name { font: 400 20px/1.2 var(--display); color: var(--brass-hi); }
.pick__meta { font-size: 13px; color: var(--concrete); font-variant-numeric: tabular-nums; }
.pick .btn { min-height: 46px; padding: 0 18px; flex: none; }

.floors { display: none; margin-top: 28px; }
.floors__title { margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.floors__list { border-top: 1px solid var(--rule); }
.frow {
  width: 100%; min-height: 60px; padding: 10px 2px;
  display: grid; grid-template-columns: 1fr auto 20px; grid-template-areas: 'name free go' 'meta price go'; align-items: center; column-gap: 12px;
  background: none; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer; text-align: left;
  transition: background-color 0.2s, opacity 0.2s;
}
.frow__name { grid-area: name; font: 400 19px/1.25 var(--display); }
.frow__meta { grid-area: meta; font-size: 13px; color: var(--stone); }
.frow__free { grid-area: free; justify-self: end; font-size: 13px; font-weight: 600; color: var(--free); }
.frow__free--hit { color: var(--brass-hi); }
.frow__price { grid-area: price; justify-self: end; font-size: 13px; color: var(--concrete); font-variant-numeric: tabular-nums; }
.frow__go { grid-area: go; width: 20px; height: 20px; fill: none; stroke: var(--stone); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.frow--none .frow__name { color: var(--stone); }
.frow--none .frow__free { color: var(--sold); font-weight: 500; }
.frow.is-dim { opacity: 0.45; }
.frow.is-active, .frow:hover { background: rgba(200, 162, 90, 0.08); }
.frow.is-active .frow__go, .frow:hover .frow__go { stroke: var(--brass-hi); }
.picker.is-floor .floors, .picker.is-floor > .pick { display: none; }

/* ---------- 6 floor plan ---------- */
.floorview { display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 72px); align-items: start; margin-top: clamp(28px, 3.4vw, 52px); animation: rise 0.6s var(--ease) backwards; }
.fswitch { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.floorview__title { font: 300 clamp(32px, 3.4vw, 50px)/1.05 var(--display); letter-spacing: -0.02em; }
.fswitch__btns { display: flex; border: 1px solid var(--rule-2); border-radius: 2px; flex: none; }
.fswitch__btns button { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--paper); transition: background-color 0.2s, color 0.2s; }
.fswitch__btns button + button { border-left: 1px solid var(--rule-2); }
.fswitch__btns svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fswitch__btns button:hover:not(:disabled) { background: rgba(200, 162, 90, 0.14); color: var(--brass-hi); }
.fswitch__btns button:disabled { color: var(--sold); cursor: default; opacity: 0.5; }
.floorview__meta { margin: 10px 0 22px; color: var(--concrete); font-variant-numeric: tabular-nums; }
.ulist { border-top: 1px solid var(--rule-2); }
.urow {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; grid-template-areas: 'id what price' 'id tag price'; align-items: center; column-gap: 14px; row-gap: 3px;
  padding: 13px 4px; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background-color 0.2s, opacity 0.2s;
}
.urow__id { grid-area: id; font: 400 22px/1 var(--display); }
.urow__what { grid-area: what; font-size: 14px; color: var(--concrete); }
.urow .tag { grid-area: tag; }
.urow__price { grid-area: price; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
a.urow:hover, .urow.is-hover { background: rgba(200, 162, 90, 0.09); }
a.urow:hover .urow__id, a.urow.is-hover .urow__id { color: var(--brass-hi); }
.urow--sold { color: var(--sold); }
.urow--sold .urow__what, .urow--sold .urow__price { color: var(--sold); }
.urow--sold .urow__price { text-decoration: line-through; font-weight: 400; }
.urow.is-dim { opacity: 0.38; }
.legend--status { margin-top: 20px; }
.floorview__note { margin-top: 12px; font-size: 13px; color: var(--stone); }

.floorview__plan { position: relative; min-width: 0; }
.plan { transition: opacity 0.18s ease, transform 0.18s ease; }
.plan.is-swapping { opacity: 0.12; transform: translateY(8px); }
.plan__svg { width: 100%; height: auto; font-family: var(--sans); user-select: none; -webkit-tap-highlight-color: transparent; }
.plan__side { fill: var(--stone); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; }
.plan__below { fill: none; stroke: var(--rule-2); stroke-width: 1; stroke-dasharray: 6 5; }
.plan__shared { fill: rgba(240, 235, 227, 0.025); stroke: rgba(240, 235, 227, 0.7); stroke-width: 1.6; }
.plan__core { fill: none; stroke: rgba(240, 235, 227, 0.42); stroke-width: 1; }
.plan__green { fill: url(#p-green); stroke: rgba(127, 181, 138, 0.45); stroke-width: 1; }
.p-green__d { fill: rgba(127, 181, 138, 0.6); }
.p-sold__l { fill: rgba(170, 172, 176, 0.34); }
.plan__room { fill: var(--stone); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.plan__north path { fill: none; stroke: var(--paper); stroke-width: 1.4; }
.plan__north text { fill: var(--paper); font-size: 13px; font-weight: 700; }
.plan__scale path { fill: none; stroke: var(--concrete); stroke-width: 1.2; }
.plan__scale text { fill: var(--stone); font-size: 11px; font-variant-numeric: tabular-nums; }

.pu { cursor: pointer; outline: none; transition: opacity 0.25s; }
.pu--sold { cursor: default; }
.pu__body { fill: rgba(127, 181, 138, 0.11); stroke: var(--paper); stroke-width: 2.2; transition: fill 0.22s ease, stroke 0.22s ease; }
.pu--reserved .pu__body { fill: rgba(218, 182, 85, 0.13); }
.pu--sold .pu__body { fill: rgba(125, 128, 134, 0.07); }
.pu__hatch { fill: url(#p-sold); pointer-events: none; }
.pu__in { fill: none; stroke: rgba(240, 235, 227, 0.4); stroke-width: 1; pointer-events: none; }
.pu__gap { fill: none; stroke: var(--ink); stroke-width: 4.5; pointer-events: none; }
.pu__win { fill: var(--ink); stroke: var(--paper); stroke-width: 1; pointer-events: none; }
.pu__out { fill: rgba(240, 235, 227, 0.02); stroke: rgba(240, 235, 227, 0.5); stroke-width: 1; }
.pu__out--atrium { fill: url(#p-green); stroke: rgba(127, 181, 138, 0.5); stroke-dasharray: 4 4; }
.pu__out--terrace { fill: rgba(184, 138, 91, 0.12); }
.pu__rail { fill: none; stroke: rgba(240, 235, 227, 0.5); stroke-width: 1; pointer-events: none; }
.pu__outarea { fill: var(--stone); font-size: 10px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; pointer-events: none; }
.pu__id { fill: var(--paper); font: 400 25px var(--display); pointer-events: none; }
.pu__area { fill: var(--concrete); font-size: 12px; font-variant-numeric: tabular-nums; pointer-events: none; }
.pu--sold .pu__id, .pu--sold .pu__area { fill: var(--sold); }
.pu:not(.pu--sold).is-hover .pu__body, .pu:not(.pu--sold):focus-visible .pu__body, .pu.is-picked .pu__body { fill: rgba(200, 162, 90, 0.32); stroke: var(--brass-hi); }
.pu:not(.pu--sold).is-hover .pu__id, .pu.is-picked .pu__id { fill: var(--brass-hi); }
.pu--sold.is-hover .pu__body { fill: rgba(125, 128, 134, 0.16); }
.pu.is-dim { opacity: 0.26; }
.tip--plan { z-index: 4; }
.floorview__plan .pick { margin-top: 8px; }

/* ---------- 7 apartment ---------- */
.unit { padding: calc(var(--head-h) + clamp(28px, 4vw, 56px)) 0 var(--sec); }
.unit__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(20px, 3vw, 44px); }
.unit__title { margin: 14px 0 12px; font: 300 clamp(72px, 12vw, 200px)/0.86 var(--display); letter-spacing: -0.03em; font-variant-numeric: lining-nums; outline: none; }
.unit__sub { font-size: clamp(16px, 1.3vw, 19px); color: var(--concrete); }
.unit__head .tag--big { margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 60px); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule); }
.facts > div { padding: 22px 20px 24px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.facts dd { margin-top: 10px; font: 300 clamp(24px, 2.5vw, 38px)/1.1 var(--display); letter-spacing: -0.015em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.unit__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.unit__msg { flex-basis: 100%; min-height: 20px; font-size: 14px; color: var(--brass-hi); }

.unit__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; margin-top: clamp(40px, 5vw, 80px); }
.tloris { position: sticky; top: calc(var(--head-h) + 20px); }
.tloris__frame { position: relative; background: #fff; border-radius: 2px; overflow: hidden; }
.tloris__frame img { width: 100%; aspect-ratio: 1; }
.tloris figcaption { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--stone); max-width: 70ch; }
.tloris figcaption b { font-weight: 600; color: var(--concrete); }
.tloris__list { display: none; margin-top: 14px; border-top: 1px solid var(--rule-2); }
.tloris__list li > * { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 15px; text-decoration: none; }
.tloris__list small { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-hi); }
.unit__info .h3 { margin: 44px 0 6px; }
.unit__info .h3:first-child { margin-top: 0; }
.details > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.details dt { color: var(--concrete); }
.details dd { text-align: right; font-variant-numeric: tabular-nums; }
.details small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--stone); }
.feats { columns: 2; column-gap: 28px; margin-top: 8px; font-size: 15px; }
.feats li { break-inside: avoid; padding: 11px 0 11px 20px; border-bottom: 1px solid var(--rule); position: relative; color: var(--paper); }
.feats li::before { content: ''; position: absolute; left: 0; top: 23px; width: 8px; height: 1px; background: var(--brass); }

/* hotspots: a small square mark with a label */
.spot { position: absolute; z-index: 1; width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; padding: 0; background: none; border: 0; cursor: pointer; text-decoration: none; color: inherit; }
.spot__mark { position: relative; width: 22px; height: 22px; border: 1.5px solid #fff; background: rgba(15, 16, 18, 0.62); transition: background-color 0.25s, transform 0.3s var(--ease), border-color 0.25s; }
.spot__mark::before, .spot__mark::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; margin: -0.75px 0 0 -4.5px; background: #fff; }
.spot__mark::after { transform: rotate(90deg); }
.spot:hover .spot__mark, .spot:focus-visible .spot__mark, .spot.is-open .spot__mark { background: var(--brass); border-color: var(--brass); transform: rotate(45deg); }
.spot:hover .spot__mark::before, .spot:hover .spot__mark::after, .spot:focus-visible .spot__mark::before, .spot:focus-visible .spot__mark::after, .spot.is-open .spot__mark::before, .spot.is-open .spot__mark::after { background: var(--brass-ink); }
.spot__label {
  position: absolute; left: calc(100% + 4px); top: 50%; transform: translateY(-50%);
  width: max-content; max-width: min(260px, 60vw); padding: 12px 14px;
  background: rgba(15, 16, 18, 0.96); border-left: 2px solid var(--brass);
  text-align: left; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--paper); white-space: normal;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s 0.2s;
  pointer-events: none;
}
.spot__label small { display: block; margin-top: 5px; font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--concrete); }
.spot:hover, .spot:focus-visible, .spot.is-open { z-index: 3; }
.spot:hover .spot__label, .spot:focus-visible .spot__label, .spot.is-open .spot__label { opacity: 1; visibility: visible; transition: opacity 0.2s ease, visibility 0s 0s; }
.spot--left .spot__label { left: auto; right: calc(100% + 4px); border-left: 0; border-right: 2px solid var(--brass); }
.spot--up .spot__label { top: auto; bottom: 4px; transform: none; }
/* on the white floor plan the labels are always shown */
.spot--room .spot__mark { border-color: #17181a; background: #17181a; }
.spot--room .spot__label { opacity: 1; visibility: visible; padding: 7px 10px; font-size: 12.5px; background: #17181a; border: 0; max-width: 180px; }
.spot--room .spot__label small { margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-hi); }
.spot--plain { cursor: default; }
.spot--plain .spot__mark { background: #fff !important; border-color: #17181a !important; transform: none !important; }
.spot--plain .spot__mark::before, .spot--plain .spot__mark::after { display: none; }
.spot--plain .spot__label { background: #fff; color: #17181a; box-shadow: inset 0 0 0 1px #17181a; }

.unit__pos { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 96px); align-items: start; margin-top: var(--sec); padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule); }
.unit__poshead .h3--big { margin-top: 18px; }
.pos__svg { width: 100%; height: auto; border-radius: 2px; background: #20242b; }
.pos__dim { fill: #0b0c0e; opacity: 0.6; }
.pos__floor { fill: rgba(200, 162, 90, 0.14); stroke: var(--brass-hi); stroke-width: 3; }
.pos__unit { fill: rgba(200, 162, 90, 0.62); }
.pos__tick { fill: none; stroke: #fff; stroke-width: 3; }
.pos figcaption { margin-top: 12px; font-size: 13px; color: var(--stone); }
.unit__calc { margin-top: var(--sec); padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule); }
.unit__calc .sec__head { display: block; margin-bottom: clamp(28px, 3.4vw, 48px); }
.unit__calc .h3--big { margin-top: 18px; }

/* ---------- 8 tour ---------- */
.tour { position: fixed; inset: 0; z-index: 100; background: #0c0d0f; color: var(--paper); opacity: 0; transition: opacity 0.45s ease; overflow: hidden; }
.tour.is-open { opacity: 1; }
.tour__stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.tour__pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, transform 1.1s var(--ease); }
.tour__pane.is-enter { visibility: visible; opacity: 0; transform: scale(1.07); transition: none; }
.tour__pane.is-on { visibility: visible; opacity: 1; transform: none; z-index: 2; }
.tour__pane.is-leave { visibility: visible; opacity: 0; transform: scale(1.16); z-index: 3; pointer-events: none; }
.tour__layer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); will-change: transform; }
.tour__layer img { width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.tour__spots { position: absolute; inset: 0; }
.tour__shade { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(180deg, rgba(12, 13, 15, 0.62) 0%, rgba(12, 13, 15, 0) 20%, rgba(12, 13, 15, 0) 66%, rgba(12, 13, 15, 0.78) 100%); }
.tour__bar { position: absolute; inset: 0 0 auto 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); }
.tour__where { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 15px; }
.tour__tag { padding: 6px 10px; border: 1px solid rgba(240, 235, 227, 0.5); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.tour__where b { font: 400 22px/1 var(--display); color: var(--brass-hi); }
.tour__close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 16px; background: rgba(15, 16, 18, 0.8); border: 1px solid rgba(240, 235, 227, 0.35); border-radius: 2px; cursor: pointer; font-size: 14px; font-weight: 600; flex: none; transition: border-color 0.2s, color 0.2s; }
.tour__close svg, .tour__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tour__close:hover, .tour__arrow:hover { border-color: var(--brass); color: var(--brass-hi); }
.tour__arrow { position: absolute; top: 50%; z-index: 6; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center; background: rgba(15, 16, 18, 0.8); border: 1px solid rgba(240, 235, 227, 0.35); border-radius: 2px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.tour__arrow--prev { left: var(--gutter); }
.tour__arrow--next { right: var(--gutter); }
.tour__nav { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; z-index: 6; display: flex; gap: 0; max-width: 860px; margin-inline: auto; border-top: 1px solid rgba(240, 235, 227, 0.3); }
.tour__nav button { flex: 1 1 0; min-width: 0; padding: 14px 10px 6px 0; background: none; border: 0; border-top: 2px solid transparent; margin-top: -1.5px; cursor: pointer; text-align: left; font-size: 15px; font-weight: 500; line-height: 1.3; color: rgba(240, 235, 227, 0.72); transition: color 0.25s, border-color 0.25s; }
.tour__nav i { display: block; margin-bottom: 4px; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; font-variant-numeric: tabular-nums; color: var(--concrete); }
.tour__nav button:hover { color: var(--paper); }
.tour__nav button[aria-current='true'] { color: var(--paper); border-top-color: var(--brass); }
.tour__nav button[aria-current='true'] i { color: var(--brass-hi); }
.tour__mini { position: absolute; right: var(--gutter); bottom: 112px; z-index: 6; width: 148px; }
.tour__minimap { position: relative; background: #fff; border-radius: 2px; overflow: hidden; }
.tour__minimap img { width: 100%; height: auto; }
.tour__dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--brass); border: 2px solid #17181a; transform: rotate(45deg); transition: left 0.7s var(--ease), top 0.7s var(--ease); }
.tour__hint, .tour__motion { position: absolute; left: 50%; transform: translateX(-50%); z-index: 6; white-space: nowrap; }
.tour__hint { display: none; bottom: 116px; padding: 7px 12px; background: rgba(15, 16, 18, 0.78); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; transition: opacity 0.4s; pointer-events: none; }
.tour--pan .tour__hint { display: block; }
.tour.is-dragged .tour__hint { opacity: 0; }
.tour__motion { bottom: 156px; min-height: 40px; padding: 0 14px; background: rgba(15, 16, 18, 0.86); border: 1px solid var(--brass); border-radius: 2px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tour__cap { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 214px; z-index: 6; padding: 14px 16px; background: rgba(15, 16, 18, 0.96); border-left: 2px solid var(--brass); font-size: 15px; font-weight: 600; line-height: 1.3; }
.tour__cap small { display: block; margin-top: 5px; font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--concrete); }
.tour--pan .tour__spots .spot__label { display: none; }
.tour--pan .tour__hint, .tour--pan .tour__motion { left: auto; right: var(--gutter); transform: none; }
.tour__load { position: absolute; inset: 0 0 auto 0; z-index: 7; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.tour.is-loading .tour__load { animation: load 1.4s ease-in-out infinite; }
@keyframes load { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* ---------- 9 comparison ---------- */
.tray { position: fixed; inset: auto 0 0 0; z-index: 40; background: rgba(15, 16, 18, 0.98); border-top: 1px solid rgba(200, 162, 90, 0.5); animation: trayin 0.45s var(--ease); }
@keyframes trayin { from { transform: translateY(100%); } to { transform: none; } }
.tray__in { width: min(1480px, 100% - 2 * var(--gutter)); margin-inline: auto; min-height: 76px; display: flex; align-items: center; gap: 20px; }
.tray__label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.tray__list { display: flex; gap: 10px; margin-right: auto; min-width: 0; }
.tray__list li { display: flex; align-items: center; border: 1px solid var(--rule-2); border-radius: 2px; }
.tray__list a { padding: 8px 4px 8px 12px; font: 400 18px/1 var(--display); text-decoration: none; }
.tray__list a:hover { color: var(--brass-hi); }
.tray__list button { width: 34px; height: 36px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--stone); }
.tray__list button:hover { color: var(--paper); }
.tray__list svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tray .btn { min-height: 46px; padding: 0 20px; }

.cmpview { padding: calc(var(--head-h) + clamp(28px, 4vw, 56px)) 0 var(--sec); min-height: 80svh; }
.cmpview .eyebrow { margin-top: clamp(20px, 3vw, 44px); }
.cmpview .h2 { margin: 20px 0 18px; }
.cmpview [data-compare-body] { margin-top: clamp(36px, 4vw, 64px); }
.empty { margin-bottom: 24px; color: var(--concrete); max-width: 52ch; }
.cmp__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--rule-2); }
.cmp { min-width: 560px; table-layout: fixed; font-size: 15px; }
.cmp th, .cmp td { padding: 15px 20px 15px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 400; }
.cmp tbody th { width: 24%; color: var(--stone); font-size: 13px; letter-spacing: 0.04em; }
.cmp thead td { width: 24%; }
.cmp td { font-variant-numeric: tabular-nums; }
.cmp thead th { padding: 26px 20px 22px 0; vertical-align: bottom; }
.cmp__id { display: block; margin-bottom: 12px; font: 300 clamp(40px, 5vw, 72px)/0.9 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.cmp__id:hover { color: var(--brass-hi); }
.cmp__x { display: block; margin-top: 12px; padding: 0; background: none; border: 0; cursor: pointer; font-size: 13px; color: var(--stone); text-decoration: underline; text-underline-offset: 4px; }
.cmp__x:hover { color: var(--paper); }
.cmp__strong td b { font: 400 clamp(20px, 2vw, 28px)/1.1 var(--display); }
.cmp__best { display: inline-block; margin-left: 10px; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--free); }
.cmp__actions td { border-bottom: 0; padding-top: 24px; }
.cmp__actions .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* ---------- 10 calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.calc__in { display: grid; grid-template-columns: 1fr 1fr; gap: 30px clamp(24px, 3vw, 48px); align-content: start; }
.calc__in .field:nth-child(2), .calc__in .field:nth-child(3) { gap: 14px; }
.calc__note { grid-column: 1 / -1; font-size: 13px; line-height: 1.6; color: var(--fg-3); max-width: 60ch; }
.calc__out { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--rule-2); border-radius: 2px; }
.calc__label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.calc__big { margin: 12px 0 24px; font: 300 clamp(44px, 5.4vw, 84px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; color: var(--brass-hi); white-space: nowrap; }
.calc__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.calc__rows dt { color: var(--fg-2); }
.calc__rows dd { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.calc__out .calc__note { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); }

/* ---------- 11 gallery ---------- */
.gal__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); }
.gal__item { display: block; padding: 0; background: none; border: 0; cursor: zoom-in; text-align: left; color: inherit; min-width: 0; }
.gal__frame { display: block; position: relative; overflow: hidden; background: var(--coal); border-radius: 2px; }
.gal__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gal__item:hover .gal__frame img:not([data-parallax]), .gal__item:focus-visible .gal__frame img:not([data-parallax]) { transform: scale(1.035); }
.gal__cap { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--concrete); }
.gal__cap i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; font-variant-numeric: tabular-nums; color: var(--stone); }
.gal__item:hover .gal__cap { color: var(--paper); }
.gal__item--a { grid-column: 1 / span 8; }
.gal__item--a .gal__frame { aspect-ratio: 16 / 9.4; }
.gal__item--b { grid-column: 9 / span 4; display: flex; flex-direction: column; }
.gal__item--b .gal__frame { flex: 1; min-height: 240px; }
.gal__item--b img { position: absolute; inset: 0; object-position: 38% 50%; }
.gal__item--c { grid-column: 1 / span 5; margin-top: clamp(20px, 4vw, 72px); }
.gal__item--c .gal__frame { aspect-ratio: 4 / 3.3; }
.gal__item--c img { object-position: 70% 50%; }
.gal__item--d { grid-column: 6 / span 7; }
.gal__item--d .gal__frame { aspect-ratio: 16 / 10; }
.gal__item--wide { width: 100%; margin: clamp(40px, 6vw, 100px) 0; }
.gal__item--wide .gal__frame { aspect-ratio: 21 / 9; border-radius: 0; }
.gal__item--wide .gal__frame img { position: absolute; left: 0; top: -6%; height: 112%; }
.gal__grid--three .gal__item { grid-column: span 4; }
.gal__grid--three .gal__frame { aspect-ratio: 4 / 3; }
.gal__item--paper .gal__frame { background: #fff; }
.gal__item--paper img { object-fit: contain; }

.lb { position: fixed; inset: 0; z-index: 110; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 70px var(--gutter) 28px; background: rgba(10, 11, 13, 0.98); opacity: 0; transition: opacity 0.35s ease; }
.lb.is-open { opacity: 1; }
.lb__fig { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; height: 100%; min-height: 0; justify-items: center; }
.lb__fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; min-height: 0; transition: opacity 0.3s ease; background: #17181a; }
.lb__fig img.is-swap { opacity: 0.25; }
.lb__fig figcaption { display: flex; gap: 16px; align-items: baseline; font-size: 14px; color: var(--concrete); }
.lb__count { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; font-variant-numeric: tabular-nums; color: var(--stone); }
.lb__close { position: absolute; right: var(--gutter); top: 14px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 16px; background: none; border: 1px solid var(--rule-2); border-radius: 2px; cursor: pointer; font-size: 14px; font-weight: 600; }
.lb__arrow { width: 52px; height: 52px; display: grid; place-items: center; background: none; border: 1px solid var(--rule-2); border-radius: 2px; cursor: pointer; }
.lb__close svg, .lb__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb__close:hover, .lb__arrow:hover { border-color: var(--brass); color: var(--brass-hi); }

/* ---------- 12 location ---------- */
.loc__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.loc__map svg { width: 100%; height: auto; border-radius: 2px; font-family: var(--sans); }
.loc__map figcaption { margin-top: 12px; font-size: 13px; color: var(--stone); }
.map__bg { fill: #181a1d; }
.map__blocks rect { fill: rgba(240, 235, 227, 0.045); }
.map__park { fill: rgba(127, 181, 138, 0.13); stroke: rgba(127, 181, 138, 0.3); stroke-width: 1; stroke-dasharray: 3 4; }
.map__hill { fill: rgba(127, 181, 138, 0.07); }
.map__contour { fill: none; stroke: rgba(127, 181, 138, 0.34); stroke-width: 1; }
.map__river { fill: none; stroke: #223440; stroke-width: 50; }
.map__riverline { fill: none; stroke: rgba(160, 196, 214, 0.22); stroke-width: 1; stroke-dasharray: 2 9; }
.map__roads path { fill: none; stroke: rgba(240, 235, 227, 0.1); stroke-width: 1.2; }
.map__main { fill: none; stroke: rgba(240, 235, 227, 0.26); stroke-width: 3; }
.map__bridge { fill: none; stroke: rgba(240, 235, 227, 0.5); stroke-width: 5; }
.map__routes path { fill: none; stroke: var(--brass); stroke-width: 1.4; stroke-dasharray: 5 6; }
.map__water { fill: rgba(160, 196, 214, 0.6); font: italic 400 20px var(--display); letter-spacing: 0.04em; }
.map__area { fill: var(--stone); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.map__area--park { fill: rgba(127, 181, 138, 0.8); }
.map__poi rect { fill: #181a1d; stroke: var(--paper); stroke-width: 1.2; }
.map__poi text { fill: var(--paper); font-size: 11px; font-weight: 700; text-anchor: middle; }
.map__you rect { fill: var(--brass); }
.map__you text { fill: var(--brass-hi); font: 400 19px var(--display); }
.map__scale path { fill: none; stroke: var(--concrete); stroke-width: 1.2; }
.map__scale text { fill: var(--stone); font-size: 11px; }
.loc__list { border-top: 1px solid var(--rule-2); }
.loc__list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: 'n name dist' 'n time dist'; column-gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.loc__list i { grid-area: n; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--rule-2); font-style: normal; font-size: 11px; font-weight: 700; }
.loc__list span { grid-area: name; font-size: 17px; }
.loc__list em { grid-area: time; font-style: normal; font-size: 13px; color: var(--stone); }
.loc__list b { grid-area: dist; font: 300 clamp(24px, 2.4vw, 34px)/1 var(--display); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

/* ---------- 13 specification ---------- */
.tech.paper { border-top: 0; }
.tech__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 72px); border-top: 1px solid var(--rule-2); }
.tech__grid > div { padding: 24px 0 28px; border-bottom: 1px solid var(--rule); }
.tech__grid dt { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.tech__grid dd { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--fg); max-width: 40ch; }
.tech__more { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); margin-top: clamp(48px, 6vw, 96px); align-items: start; }
.tech__extras .areas { margin-top: 10px; border-top: 1px solid var(--rule-2); }
.tech__extras .areas td { font: 300 clamp(22px, 2.2vw, 32px)/1.1 var(--display); }

/* ---------- 14 timeline ---------- */
.time.paper { border-top-color: var(--rule); }
.time__list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); }
.time__list li { position: relative; padding: 28px 18px 0 0; display: grid; gap: 10px; align-content: start; }
.time__list li::before { content: ''; position: absolute; z-index: 1; left: 0; top: -5px; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--fg-3); }
.time__list li.is-done::before { background: var(--fg); border-color: var(--fg); }
.time__list li.is-now::before { background: var(--accent); border-color: var(--accent); width: 13px; height: 13px; top: -7px; transform: rotate(45deg); }
.time__list li.is-done::after, .time__list li.is-now::after { content: ''; position: absolute; left: 0; right: 0; top: -1.5px; height: 2px; background: var(--fg); }
.time__list li.is-now::after { right: 50%; background: var(--accent); }
.time__list time { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.time__list b { font: 400 clamp(18px, 1.5vw, 23px)/1.2 var(--display); }
.time__list em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.time__list li.is-now em { color: var(--accent); }
.time__list li.is-goal b { color: var(--accent); }

/* ---------- 15 enquiry ---------- */
.inq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 130px); align-items: start; }
.inq__intro { position: sticky; top: calc(var(--head-h) + 28px); }
.inq__intro .h2 { margin: 20px 0 22px; }
.note--demo { margin-top: 28px; padding: 14px 16px; border-left: 2px solid var(--brass); background: rgba(200, 162, 90, 0.07); color: var(--concrete); }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px clamp(20px, 3vw, 40px); }
.check--gdpr { margin-top: 4px; }
.form > .field__err { margin-top: -14px; }
.form .btn { justify-self: start; margin-top: 6px; }
.done__head .h3--big { margin: 18px 0 16px; outline: none; font-size: clamp(34px, 4vw, 60px); }
.behind { margin-top: clamp(32px, 4vw, 56px); padding-top: 28px; border-top: 1px solid var(--rule-2); }
.behind__title { font: 300 clamp(26px, 2.6vw, 38px)/1.1 var(--display); letter-spacing: -0.015em; }
.behind__demo { margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--brass-hi); }
.flow { margin-top: 28px; }
.flow__step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 0 0 30px; opacity: 0.38; transition: opacity 0.5s ease; }
.flow__step::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 0; width: 1px; background: var(--rule-2); }
.flow__step::after { content: ''; position: absolute; left: 13px; top: 30px; bottom: 0; width: 1px; background: var(--brass); transform: scaleY(0); transform-origin: top; transition: transform 1s linear; }
.flow__step:last-child::before, .flow__step:last-child::after { display: none; }
.flow__n { grid-row: 1 / span 2; align-self: start; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--rule-2); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color 0.4s, color 0.4s, border-color 0.4s; }
.flow__text h4 { font: 400 20px/1.25 var(--display); }
.flow__text p { margin-top: 4px; font-size: 14px; color: var(--concrete); }
.art { grid-column: 2; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--rule); background: var(--coal); font-size: 14px; line-height: 1.55; color: var(--concrete); transform: translateY(8px); transition: transform 0.6s var(--ease), border-color 0.4s; }
.art b { color: var(--paper); font-weight: 600; }
.art__cap { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); overflow-wrap: anywhere; }
.art__row { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; font-variant-numeric: tabular-nums; }
.flow__step.is-run, .flow__step.is-done { opacity: 1; }
.flow__step.is-run .flow__n { border-color: var(--brass); color: var(--brass-hi); }
.flow__step.is-run::after, .flow__step.is-done::after { transform: scaleY(1); }
.flow__step.is-done .flow__n { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
.flow__step.is-run .art, .flow__step.is-done .art { transform: none; border-color: var(--rule-2); }
.behind__mg { margin-top: 4px; padding: 16px 18px; border-left: 2px solid var(--brass); background: rgba(200, 162, 90, 0.07); font-size: 15px; }
.behind__mg a { color: var(--brass-hi); font-weight: 600; text-underline-offset: 4px; }
.behind__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.behind__actions .btn { min-height: 46px; padding: 0 18px; font-size: 14px; }

/* ---------- 16 footer ---------- */
.foot { padding: 44px 0 40px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--stone); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 40px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.foot__links { display: flex; gap: 24px; justify-self: end; }
.foot__links a { color: var(--concrete); text-underline-offset: 4px; text-decoration-color: var(--rule-2); }
.foot__links a:hover { color: var(--brass-hi); }
.foot__legal, .foot__demo { grid-column: 1 / -1; line-height: 1.7; }
.foot__legal { padding-top: 18px; border-top: 1px solid var(--rule); color: var(--concrete); }

/* ---------- 17 scroll motion ----------
   Everything is visible by default. The entrance plays only when the element scrolls into view. */
@keyframes rise { from { transform: translateY(26px); } to { transform: none; } }
@keyframes unmask { from { clip-path: inset(0 0 16% 0); transform: translateY(22px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes settle { from { transform: scale(1.09); } to { transform: scale(1); } }
[data-reveal].reveal-in { animation: rise 0.9s var(--ease) backwards; }
[data-reveal='mask'].reveal-in { animation: unmask 1.1s var(--ease) backwards; }
[data-reveal='mask'].reveal-in img:not([data-parallax]) { animation: settle 1.5s var(--ease) backwards; }

/* ---------- responsive ---------- */
@media (hover: none) {
  .lead--mouse { display: none; }
  .lead--touch { display: block; }
  .floors { display: block; }
  .stage__tags { display: none; }
}

@media (max-width: 1180px) {
  .head__nav { position: fixed; inset: var(--head-h) 0 0 0; z-index: 29; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px; background: var(--ink); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity 0.3s ease, visibility 0s 0.3s; }
  .menu-open .head__nav { visibility: visible; opacity: 1; transition: opacity 0.3s ease, visibility 0s 0s; }
  .head__nav a, .head__nav .head__cta { padding: 18px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; font: 300 30px/1.1 var(--display); letter-spacing: -0.01em; }
  .head__nav a::after { display: none; }
  .head__nav .head__cta { color: var(--brass-hi); }
  .head__menu { display: block; }
  html.menu-open { overflow: hidden; }
  .tech__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .time__list { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 44px; }
  .filters__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filters__group--end { justify-items: start; }
}

@media (max-width: 899px) {
  :root { --head-h: 60px; }
  .head { gap: 12px; }
  .brand__place { display: none; }
  .brand__name { font-size: 18px; }
  .lang button { min-width: 36px; height: 32px; }

  .sec__head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .sec__head .lead { justify-self: start; padding-bottom: 0; }

  .picker__head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .stage-wrap { width: 100%; }
  .stage { --cx: 150; --cy: 146; --cw: 1700; --ch: 884; border-radius: 0; box-shadow: none; }
  .stage__back { left: 12px; top: 12px; min-height: 40px; font-size: 13px; }
  .stage__tags { display: none; }
  .tip { display: none; }
  .floors { display: block; }

  .floorview { grid-template-columns: 1fr; }
  .floorview__plan { order: -1; }
  .unit__grid, .unit__pos, .calc, .loc__grid, .tech__more, .inq__grid { grid-template-columns: 1fr; }
  .tloris, .inq__intro { position: static; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { padding: 16px 12px 18px 0; border-top: 1px solid var(--rule); }
  .facts > div:nth-child(-n + 2) { border-top: 0; }
  .facts > div + div { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .unit__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .unit__head .tag--big { margin-bottom: 0; }

  .gal__grid { grid-template-columns: 1fr; }
  .gal__item--a, .gal__item--b, .gal__item--c, .gal__item--d, .gal__grid--three .gal__item { grid-column: auto; margin-top: 0; }
  .gal__item--b .gal__frame { flex: none; aspect-ratio: 4 / 3.2; min-height: 0; }
  .gal__item--wide .gal__frame { aspect-ratio: 16 / 10; }

  .tour__arrow { display: none; }
  .tour__nav { bottom: 14px; }
  .tour__nav button { font-size: 12.5px; padding-right: 6px; }
  .tour__mini { right: auto; left: var(--gutter); bottom: 106px; width: 92px; }
  .tour__where { font-size: 13px; }
  .tour__tag { font-size: 10px; letter-spacing: 0.1em; padding: 5px 7px; }
  .lb { grid-template-columns: 1fr 1fr; padding: 66px 12px 14px; }
  .lb__fig { grid-column: 1 / -1; grid-row: 1; }
  .lb__arrow { grid-row: 2; width: 100%; height: 48px; }
}

@media (max-width: 699px) {
  .hero { min-height: max(100svh, 600px); }
  .hero__bg img { object-position: 50% 30%; transform-origin: 50% 40%; }
  .hero__scrim { background: linear-gradient(180deg, rgba(14, 16, 20, 0.55) 0%, rgba(14, 16, 20, 0) 18%, rgba(14, 16, 20, 0.1) 34%, rgba(19, 20, 22, 0.82) 60%, var(--ink) 86%); }
  .hero__body { align-self: end; padding: 0 0 26px; }
  .hero__title { margin: 16px 0 16px; font-size: clamp(50px, 15vw, 68px); }
  .hero__sub { margin-bottom: 24px; font-size: 15.5px; line-height: 1.6; }
  .hero .btn { width: 100%; justify-content: space-between; }
  .stats { grid-template-columns: 1fr 1fr; padding-bottom: 26px; }
  .stat { padding: 16px 12px 0 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--rule); }
  .stat:nth-child(n + 3) { margin-top: 16px; border-top: 1px solid var(--rule); }
  .stat dd { font-size: 30px; }
  .stat dt { font-size: 11px; letter-spacing: 0.14em; }

  .filters { padding: 4px 0; }
  .filters__toggle { display: flex; }
  .filters__toggle output:empty { display: none; }
  .filters__toggle output:empty + svg { margin-left: auto; }
  .filters__body { display: none; grid-template-columns: 1fr; gap: 20px; padding: 10px 0 20px; }
  .filters.is-open .filters__body { display: grid; }
  .chips button { flex: 1; }
  .pick { flex-direction: column; align-items: stretch; }
  .pick .btn { justify-content: space-between; }
  .unit__cta .btn { width: 100%; }
  .unit__cta .btn--brass { justify-content: space-between; }

  /* the plan is drawn 900 units wide: larger type keeps it readable on a phone */
  .pu__id { font-size: 46px; }
  .pu__area { font-size: 26px; transform: translateY(16px); }
  .pu__outarea, .plan__room, .plan__scale text { display: none; }
  .plan__side { font-size: 22px; }
  .plan__north text { font-size: 26px; }
  .urow { grid-template-columns: 56px minmax(0, 1fr) auto; }

  .spot--room .spot__label { display: none; }
  .tloris__list { display: block; }
  .feats { columns: 1; }
  .details > div { grid-template-columns: 1fr; gap: 4px; }
  .details dd { text-align: left; }
  .calc__in { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; justify-content: space-between; }
  .tech__grid { grid-template-columns: 1fr; }
  .time__list { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--rule-2); row-gap: 0; }
  .time__list li { padding: 0 0 30px 26px; gap: 6px; }
  .time__list li::before { left: -5px; top: 4px; }
  .time__list li.is-now::before { left: -7px; top: 2px; }
  .time__list li.is-done::after, .time__list li.is-now::after { left: -1.5px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .time__list li.is-now::after { bottom: 50%; }
  .map__poi rect, .map__poi text { transform: scale(1.9); }
  .map__area, .map__scale text { font-size: 19px; }
  .map__you text { font-size: 30px; }
  .map__water { font-size: 30px; }
  .tray__label { display: none; }
  .tray__list a { font-size: 16px; padding-left: 8px; }
  .tray__list button { width: 28px; }
  .tray__in { gap: 10px; }
  .tray .btn { padding: 0 14px; font-size: 14px; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__links { justify-self: start; }
  .cmp tbody th, .cmp thead td { width: 30%; }
}

/* ---------- 18 polygon editor (?edit) ---------- */
.is-edit .floor { fill: rgba(200, 162, 90, 0.1); stroke: rgba(240, 217, 164, 0.75); cursor: default; }
.is-edit .floor.is-current { fill: rgba(200, 162, 90, 0.3); stroke: #fff; }
.is-edit .stage__dim { display: none; }
.is-edit .stage__floors { mask: none; }
.is-edit .tip, .is-edit .floors, .is-edit .pick { display: none !important; }
.handle { fill: #fff; stroke: #131416; stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: grab; }
.handle:hover, .handle:focus { fill: var(--brass-hi); outline: none; }
.handle:active { cursor: grabbing; }
.edit { width: min(1480px, 100% - 2 * var(--gutter)); margin: 20px auto 0; padding: 18px 20px; background: var(--coal); border: 1px dashed rgba(200, 162, 90, 0.6); border-radius: 2px; font-size: 13px; color: var(--concrete); }
.edit__head { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--paper); }
.edit__xy { font-variant-numeric: tabular-nums; color: var(--brass-hi); }
.edit__help { margin: 8px 0 14px; max-width: 110ch; }
.edit__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.edit__label { display: grid; gap: 6px; margin-bottom: 12px; }
.edit select, .edit input, .edit textarea, .edit button { font: 500 13px/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--paper); background: var(--ink); border: 1px solid var(--rule-2); border-radius: 2px; padding: 8px 10px; }
.edit input, .edit textarea { width: 100%; }
.edit button { font-family: var(--sans); font-weight: 600; cursor: pointer; }
.edit button:hover { border-color: var(--brass); color: var(--brass-hi); }
.edit__done { color: var(--free); }

/* ---------- 19 reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg img, .floorview, .tray, [data-reveal].reveal-in, [data-reveal].reveal-in img { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .tour.is-loading .tour__load { animation: none; }
}
