/* ==========================================================================
   Pobřežní 22 — project identity built on the Flatbee system (BLACKFISH brand guidelines)
   Fonts: Lektorat Display Condensed (display) · Rethink Sans (text)
   Colors: P22 slate #363e44 + stone #687177 + concrete #dbe1e1 (sampled from the facade visualisation)
           · Brick orange #ff4500 (Flatbee accent) · Red wine #3f0201 (Flatbee block only)
   ========================================================================== */

@font-face { font-family: "Lektorat"; src: url("assets/fonts/LektoratDisplay-CondensedBold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lektorat"; src: url("assets/fonts/LektoratDisplay-CondensedRegular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url("assets/fonts/RethinkSans-VariableFont_wght.woff2") format("woff2"), url("assets/fonts/RethinkSans-VariableFont_wght.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }

:root {
  --wine: #3f0201;          /* Flatbee red wine – used only in the Flatbee/developer block */
  --wine-deep: #2a0101;
  --p22: #363e44;           /* P22 slate – facade cornice and window frames */
  --p22-deep: #272d32;
  --stone: #687177;         /* facade frame mid-tone */
  --orange: #ff4500;
  --apricot: #f3997b;
  --concrete: #dbe1e1;      /* Flatbee concrete gray = facade walls */
  --concrete-light: #eef1f1;
  --green: #7f847a;
  --green-light: #a6aea3;
  --ink: #1d1d1b;
  --ink-soft: rgba(29, 29, 27, 0.68);
  --paper: #ffffff;

  --display: "Lektorat", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --text: "Rethink Sans", "Helvetica Neue", Arial, sans-serif;

  --grid-line: rgba(54, 62, 68, 0.10);
  --grid-size: 132px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.06; letter-spacing: 0.005em; margin: 0; }
h3, h4 { line-height: 1.0; }
h1 { font-size: clamp(46px, 8.4vw, 120px); }
h2 { font-size: clamp(44px, 6.4vw, 88px); }
h3 { font-size: clamp(28px, 3.2vw, 40px); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--p22); margin-bottom: 18px; display: block; }
.on-dark .eyebrow { color: var(--apricot); }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 60ch; color: var(--ink-soft); }
.on-dark .lede { color: rgba(255, 255, 255, 0.78); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 980px; }

/* Brand grid backgrounds ------------------------------------------------ */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center top;
}
.on-dark { --grid-line: rgba(255, 69, 0, 0.28); background: var(--p22); color: #fff; }
.on-concrete { --grid-line: rgba(54, 62, 68, 0.12); background: var(--concrete); }
.on-orange { --grid-line: rgba(54, 62, 68, 0.22); background: var(--orange); color: var(--p22); }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 20px; letter-spacing: 0.04em; line-height: 1;
  text-decoration: none; border: 2px solid currentColor; background: transparent; color: inherit;
  transition: transform 160ms var(--ease), background 160ms, color 160ms, border-color 160ms;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: #e63e00; border-color: #e63e00; }
.btn-wine { background: var(--p22); border-color: var(--p22); color: #fff; }
.btn-wine:hover { background: var(--p22-deep); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 10px 16px; font-size: 19px; }
.btn .arrow { transition: transform 160ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .drawer-head :focus-visible { outline-color: var(--apricot); }

/* Window-shaped photo frames (brand "prvky") --------------------------- */
.frame { position: relative; }
.frame > img, .frame > picture, .frame > picture > img { width: 100%; height: 100%; object-fit: cover; }
.frame > picture { display: block; }
.frame-arch   { aspect-ratio: 2 / 3; border-radius: 50% 50% 0 0 / 33.33% 33.33% 0 0; overflow: hidden; }
.frame-step   { aspect-ratio: 7 / 10; clip-path: polygon(20.4% 0, 79.6% 0, 79.6% 15%, 100% 15%, 100% 100%, 0 100%, 0 15%, 20.4% 15%); }
.frame-gable  { aspect-ratio: 2 / 3; clip-path: polygon(50% 0, 100% 23.4%, 100% 100%, 0 100%, 0 23.4%); }
.frame-chamfer{ aspect-ratio: 7 / 10; clip-path: polygon(25.1% 0, 74.9% 0, 100% 21.7%, 100% 100%, 0 100%, 0 21.7%); }
.frame-wide   { aspect-ratio: 16 / 10; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.outline-svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--orange); stroke-width: 2px; pointer-events: none; overflow: visible; }
.outline-svg path, .outline-svg polygon { fill: none; vector-effect: non-scaling-stroke; }

/* Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(54, 62, 68, 0.92); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(255, 69, 0, 0.25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-symbol { width: 22px; height: 35px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 28px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; padding-top: 3px; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.nav a:hover { opacity: 1; color: var(--apricot); }
.nav-cta { margin-left: 8px; }
@media (min-width: 1101px) and (max-width: 1280px) { .nav { gap: 18px; } .nav a { letter-spacing: 0.03em; } }
.nav .lang { border: 1px solid rgba(255,255,255,.35); padding: 6px 9px; font-size: 12px; letter-spacing: 0.12em; }
.nav .lang:hover { border-color: var(--apricot); }
.burger { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; }
@media (max-width: 1100px) {
  /* the header's backdrop-filter makes it the containing block, so size the panel explicitly */
  .nav { position: fixed; inset: 72px 0 auto 0; height: calc(100dvh - 72px); background: var(--p22); flex-direction: column; align-items: stretch; padding: 24px var(--gutter) 32px; gap: 8px; overflow-y: auto; transform: translateY(-120%); visibility: hidden; transition: transform 240ms var(--ease), visibility 0s 240ms; border-bottom: 1px solid rgba(255,69,0,.3); }
  .nav.open { transform: none; visibility: visible; transition: transform 240ms var(--ease), visibility 0s 0s; }
  .nav a { font-size: 18px; min-height: 44px; display: flex; align-items: center; padding-block: 8px; }
  .nav .lang { align-self: flex-start; min-width: 44px; justify-content: center; font-size: 14px; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
}

/* Hero ------------------------------------------------------------------ */
.hero { padding: clamp(56px, 8vw, 110px) 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero .wrap > * { min-width: 0; }
.hero h1 { color: #fff; margin: 0 0 24px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 44px; }
.hero-visual { position: relative; }
.hero-visual .frame { width: 100%; }
.hero-status { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,69,0,.4); margin-top: clamp(32px, 5vw, 64px); }
.hero-status > div { padding: 22px 0; border-right: 1px solid rgba(255,69,0,.4); padding-left: 20px; }
.hero-status > div:first-child { padding-left: 0; }
.hero-status > div:last-child { border-right: 0; }
.hero-status .num { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.hero-status .lbl { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--apricot); font-weight: 600; margin-top: 6px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .hero-status { grid-template-columns: 1fr 1fr 1fr; }
  .hero-status .num { font-size: 36px; }
}
@media (max-width: 700px) {
  /* Facade first: a short arch above the claim so the building is on the first screen */
  .hero { padding-top: 24px; }
  .hero .wrap { gap: 24px; }
  .hero-visual { order: -1; width: 100%; max-width: none; }
  .hero-visual .frame { width: 100%; height: min(30vh, 280px); aspect-ratio: auto; }
  .hero-visual .frame img { object-fit: cover; object-position: 50% 30%; }
}

/* Key facts strip -------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--p22); }
.facts > div { padding: 24px 22px; border-right: 1px solid var(--p22); }
.facts > div:last-child { border-right: 0; }
.facts .num { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 56px); line-height: 1; color: var(--p22); }
.facts .lbl { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts > div { border-bottom: 1px solid var(--p22); } .facts > div:nth-child(2n) { border-right: 0; } }

/* About ----------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.about-photos .frame:first-child { margin-top: 56px; }
.about-copy p { font-size: 18px; color: var(--ink-soft); }
.about-copy p strong { color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-weight: 500; }
.checklist li::before { content: ""; width: 20px; height: 20px; margin-top: 4px; border: 2px solid var(--orange); clip-path: polygon(50% 0, 100% 35%, 100% 100%, 0 100%, 0 35%); background: linear-gradient(var(--orange), var(--orange)) center / 8px 8px no-repeat; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* Timeline -------------------------------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 2px solid var(--p22); }
.timeline > div { padding: 22px 20px 0 0; position: relative; }
.timeline > div::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; background: var(--orange); }
.timeline .when { font-family: var(--display); font-weight: 700; font-size: 30px; text-transform: uppercase; color: var(--p22); }
.timeline .what { font-size: 15px; color: var(--ink-soft); margin-top: 4px; }
.timeline .done .when::after { content: " ✓"; color: var(--green); }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr 1fr; } }

/* Units ----------------------------------------------------------------- */
.units-layout { display: grid; grid-template-columns: 380px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.units-layout > * { min-width: 0; }
.building { position: sticky; top: 92px; }
@media (max-width: 1000px) { .units-layout { grid-template-columns: 1fr; } .building { position: static; width: 100%; max-width: 420px; margin-inline: auto; } }
.building h3 { font-size: 22px; margin-bottom: 14px; color: var(--p22); }
.building svg { width: 100%; height: auto; display: block; overflow: visible; }
.building .floor-label { font-family: var(--text); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; fill: var(--ink-soft); }
.building .unit { cursor: pointer; transition: opacity 160ms; }
.building .unit .cell { stroke: var(--p22); stroke-width: 1.5; }
.building .unit text { font-family: var(--display); font-weight: 700; font-size: 22px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.building .unit.available .cell { fill: var(--orange); }
.building .unit.available text { fill: #fff; }
.building .unit.reserved .cell { fill: var(--concrete); }
.building .unit.reserved text { fill: var(--green); }
.building .unit.sold .cell { fill: var(--p22); }
.building .unit.sold text { fill: #fff; }
.building .unit.commercial .cell { stroke-dasharray: 6 4; stroke-width: 2; }
.building .unit.commercial text { font-size: 16px; }
.building .unit.dim { opacity: 0.25; }
.building .unit:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.building .unit:focus-visible .cell { stroke: var(--ink); stroke-width: 4; }
.building .unit.active .cell { stroke: var(--orange); stroke-width: 4; }
.building .roof { fill: none; stroke: var(--p22); stroke-width: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 1px solid var(--p22); }
.legend .available::before { background: var(--orange); }
.legend .reserved::before { background: var(--concrete); }
.legend .sold::before { background: var(--p22); }
.legend .commercial::before { background: #fff; border: 1px dashed var(--p22); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.chip { border: 1px solid var(--p22); background: #fff; color: var(--p22); padding: 8px 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.chip.on { background: var(--p22); color: #fff; }
.chip .count { opacity: 0.65; margin-left: 6px; font-weight: 500; }
.filters .spacer { flex: 1; }
.filters .hint { font-size: 13px; color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--p22); color: #fff; }
.chip-fav { display: inline-flex; align-items: center; gap: 6px; }
.chip-fav .heart { width: 14px; height: 14px; }
.refine { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 24px; margin-bottom: 24px; }
.refine label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.refine output { color: var(--p22); letter-spacing: 0.04em; }
.refine .range { flex: 1 1 200px; max-width: 280px; }
.refine input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--p22); background: transparent; }
.refine select { padding: 10px 12px; border: 1px solid var(--p22); background: #fff; font: inherit; font-size: 16px; min-height: 44px; }
.sort-pick { display: none; }
.link-btn { background: none; border: 0; padding: 0 4px; min-height: 44px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--p22); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--orange); }
.unit-table th .sort { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.unit-table th .sort::after { content: "↕"; opacity: 0.35; letter-spacing: 0; }
.unit-table th[aria-sort="ascending"] .sort, .unit-table th[aria-sort="descending"] .sort { color: var(--p22); }
.unit-table th[aria-sort="ascending"] .sort::after { content: "↑"; opacity: 1; }
.unit-table th[aria-sort="descending"] .sort::after { content: "↓"; opacity: 1; }
.unit-table .empty td { padding: 32px 12px; color: var(--ink-soft); cursor: default; }
.fav { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; padding: 0; color: var(--p22); vertical-align: middle; }
.fav .heart { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fav[aria-pressed="true"] .heart { fill: var(--orange); stroke: var(--orange); }
.fav:hover .heart { stroke: var(--orange); }
.chip-fav .heart { fill: none; stroke: currentColor; stroke-width: 2; }
.unit-table td.c-more { white-space: nowrap; }
.fav-cta { margin: 20px 0 0; }

.unit-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.unit-table th { text-align: left; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; padding: 0 12px 12px; border-bottom: 2px solid var(--p22); }
.unit-table td { padding: 14px 12px; border-bottom: 1px solid rgba(54, 62, 68, 0.15); vertical-align: middle; }
.unit-table tr.row { cursor: pointer; transition: background 120ms; }
.unit-table tr.row:hover { background: var(--concrete-light); }
.unit-table tr.row.muted td { color: var(--ink-soft); }
.unit-table .num { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--p22); line-height: 1; }
.unit-table .price { font-weight: 700; white-space: nowrap; }
.unit-table .right { text-align: right; }
.unit-table .ta-r { text-align: right; }
.status { display: inline-block; padding: 5px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap; }
.status.available { color: var(--ink); background: var(--orange); border-color: var(--orange); }
.status.reserved { color: var(--green); background: var(--concrete); border-color: var(--concrete); }
.status.sold { color: #fff; background: var(--p22); border-color: var(--p22); }
.unit-table .more { font-size: 13px; color: var(--p22); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.unit-table tr.row:hover .more { text-decoration: underline; text-underline-offset: 3px; }
/* Narrow desktop: floor moves next to the layout (.lf), total area stays in the detail; the sort select covers the hidden columns */
.unit-table .c-extras { max-width: 200px; }
.unit-table .lf { display: none; }
@media (min-width: 1001px) and (max-width: 1520px) { .units-layout { grid-template-columns: 300px 1fr; } .unit-table td, .unit-table th { padding-inline: 7px; } }
@media (min-width: 901px) and (max-width: 1180px) { .unit-table .c-floor, .unit-table .c-total, .unit-table th:nth-child(2), .unit-table th:nth-child(5) { display: none; } .unit-table .lf { display: inline; } .sort-pick { display: block; } }
@media (max-width: 900px) {
  .unit-table thead { display: none; }
  .unit-table tr.row { display: grid; grid-template-columns: 60px 1fr auto; grid-template-areas: "num layout status" "num area price" "num extras more"; gap: 2px 10px; padding: 14px 0; border-bottom: 1px solid rgba(63,2,1,.15); }
  .unit-table td { display: block; padding: 0; border: 0; }
  .unit-table td.c-num { grid-area: num; } .unit-table td.c-layout { grid-area: layout; font-weight: 700; } .unit-table td.c-floor { display: none; }
  .unit-table td.c-area { grid-area: area; text-align: left; } .unit-table td.c-total { display: none; } .unit-table td.c-extras { grid-area: extras; font-size: 13px; color: var(--ink-soft); }
  .unit-table td.c-price { grid-area: price; text-align: right; } .unit-table td.c-status { grid-area: status; text-align: right; } .unit-table td.c-more { grid-area: more; text-align: right; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .unit-table tbody { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .unit-table tr.empty { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .sort-pick { display: block; }
  .unit-table .lf { display: inline; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
  .unit-table tr.empty { display: block; } .unit-table tr.empty td { padding: 24px 0; }
}
@media (max-width: 700px) { .refine .range { max-width: none; flex-basis: 100%; } }
@media (max-width: 900px) {
  .unit-table td small, .unit-table td.c-extras { font-size: 14px; }
  .unit-table .status { font-size: 13px; }
}
@media (max-width: 700px) {
  .unit-table { font-size: 16px; }
  .status { font-size: 13px; }
}
@media (max-width: 1000px) { .chip { min-height: 44px; } }
.table-note { font-size: 13px; color: var(--ink-soft); margin-top: 16px; max-width: 70ch; }

/* Unit drawer ----------------------------------------------------------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(42, 1, 1, 0.55); z-index: 80; opacity: 0; pointer-events: none; transition: opacity 200ms; }
.drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(720px, 100%); background: #fff; z-index: 90; transform: translateX(100%); visibility: hidden; transition: transform 280ms var(--ease), visibility 0s 280ms, box-shadow 280ms; overflow-y: auto; box-shadow: none; }
body.drawer-open .drawer { transform: none; visibility: visible; box-shadow: -20px 0 60px rgba(0,0,0,.25); transition: transform 280ms var(--ease), visibility 0s 0s; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-head { position: sticky; top: 0; background: var(--p22); color: #fff; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.drawer-head h3 { font-size: 34px; }
.drawer-tools { display: flex; gap: 8px; align-items: center; }
.drawer-head .fav { color: #fff; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); }
.drawer-head .close { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; width: 44px; height: 44px; font-size: 22px; line-height: 1; }
.drawer-body { padding: 28px; display: grid; gap: 28px; }
.drawer-plan { background: var(--concrete-light); padding: 16px; display: grid; place-items: center; min-height: 260px; }
.drawer-plan img { max-height: min(520px, 42vh); width: auto; object-fit: contain; mix-blend-mode: multiply; }
.drawer-viz h4 { font-size: 22px; color: var(--p22); margin-bottom: 10px; }
.drawer-viz .strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.drawer-viz button { padding: 0; border: 0; background: var(--concrete); aspect-ratio: 3 / 2; overflow: hidden; cursor: zoom-in; }
.drawer-viz button:focus-visible { outline: 2px solid var(--orange, #ff4500); outline-offset: 2px; }
.drawer-viz img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms var(--ease); }
.drawer-viz button:hover img { transform: scale(1.04); }
.drawer-viz .note { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; }
@media (max-width: 700px) {
  .drawer-head { padding: 14px 16px; } .drawer-head h3 { font-size: 28px; }
  .drawer-body { padding: 16px; gap: 20px; }
  .drawer-price { order: -2; } .drawer-actions { order: -1; }
  .drawer-actions .btn { flex: 1 1 auto; justify-content: center; }
  .drawer-plan { min-height: 0; }
}
@media (min-width: 701px) {
  .drawer-plan { order: -3; min-height: 0; } .drawer-price { order: -2; } .drawer-actions { order: -1; }
  .drawer-plan img { max-height: min(300px, 36vh); }
}
.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.spec > div { border-top: 2px solid var(--p22); padding-top: 10px; }
.spec .k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.spec .v { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--p22); margin-top: 4px; }
.spec .v small { font-family: var(--text); font-weight: 600; font-size: 13px; color: var(--ink-soft); margin-left: 4px; }
.drawer-price { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 1px solid var(--p22); padding: 18px 20px; }
.drawer-price .p { font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--p22); line-height: 1; }
.drawer-price .per { font-size: 13px; color: var(--ink-soft); }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.drawer-note { font-size: 13px; color: var(--ink-soft); }
.drawer-price .monthly { font-size: 15px; color: var(--ink); margin-top: 10px; }
.drawer-price .monthly strong { color: var(--p22); }
.drawer-price .monthly small { display: block; font-size: 13px; color: var(--ink-soft); }
.drawer-price .monthly a { color: var(--p22); font-weight: 700; }
.spec .where svg { width: auto; height: 96px; display: block; margin-top: 8px; overflow: visible; }
.mini .unit .cell { fill: var(--concrete-light); stroke: var(--stone); stroke-width: 2; }
.mini .unit.here .cell { fill: var(--p22); stroke: var(--p22); }
.mini .roof { fill: none; stroke: var(--stone); stroke-width: 2; }
.mini line { stroke: var(--p22); stroke-width: 3; }
.similar h4 { font-size: 22px; color: var(--p22); margin-bottom: 10px; }
.similar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.similar a { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 14px; border: 1px solid rgba(54,62,68,.3); text-decoration: none; min-height: 44px; }
.similar a:hover { border-color: var(--p22); background: var(--concrete-light); }
.similar .n { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--p22); line-height: 1; }
.similar .d { font-size: 15px; } .similar .d small { display: block; font-size: 13px; color: var(--ink-soft); }
.similar .pr { font-weight: 700; white-space: nowrap; }
@media (max-width: 420px) { .similar a { grid-template-columns: auto 1fr; } .similar .pr { grid-column: 2; } }

/* Gallery --------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 14px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; cursor: zoom-in; background: var(--concrete); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.gallery figure:hover img, .gallery figure:focus-visible img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; bottom: 0; padding: 8px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: linear-gradient(transparent, rgba(42,1,1,.75)); width: 100%; }
.g-a { grid-column: span 7; grid-row: span 4; }
.g-b { grid-column: span 5; grid-row: span 2; }
.g-c { grid-column: span 5; grid-row: span 2; }
.g-d { grid-column: span 4; grid-row: span 3; }
.g-e { grid-column: span 4; grid-row: span 3; }
.g-f { grid-column: span 4; grid-row: span 3; }
.g-g { grid-column: span 6; grid-row: span 3; }
.g-h { grid-column: span 6; grid-row: span 3; }
@media (max-width: 800px) { .gallery { grid-auto-rows: 90px; } .gallery figure { grid-column: span 6 !important; grid-row: span 2 !important; } .g-a { grid-column: span 12 !important; grid-row: span 3 !important; } }
.gallery-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.lightbox { position: fixed; inset: 0; background: rgba(42,1,1,.94); z-index: 100; display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1400px, 100%); max-height: 86vh; object-fit: contain; }
.lightbox .lb-close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; background: var(--orange); border: 0; color: #fff; font-size: 24px; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 24px; }
.lightbox .lb-prev { left: 20px; } .lightbox .lb-next { right: 20px; }
.lightbox .lb-cap { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }

/* Standards ------------------------------------------------------------- */
.standards { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 64px); margin: 0; }
.standards > div { display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid rgba(54, 62, 68, .2); }
.standards dt { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1; color: var(--p22); }
.standards dd { margin: 0; color: var(--ink-soft); }
.standards-cta { margin: 40px 0 0; }
.standards-cta .btn { color: var(--p22); }
@media (max-width: 900px) { .standards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .standards > div { grid-template-columns: 1fr; gap: 8px; } }

/* Location -------------------------------------------------------------- */
.map-layout { display: grid; grid-template-columns: 1fr 380px; gap: 0; border: 1px solid var(--p22); background: #fff; }
.map-stage { position: relative; min-height: 560px; overflow: hidden; }
#map { position: absolute; inset: 0; contain: paint; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 40px; color: var(--ink-soft); background: var(--concrete-light); }
.map-fallback { background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 66px 66px; background-position: center; }
.map-gate { display: grid; justify-items: center; gap: 16px; max-width: 34ch; }
.map-addr { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.05; text-transform: uppercase; color: var(--p22); }
.map-note { margin: 0; font-size: 15px; color: var(--ink-soft); }
.map-side { padding: 26px; border-left: 1px solid var(--p22); display: flex; flex-direction: column; gap: 16px; max-height: 560px; overflow: auto; }
.map-side h3 { font-size: 24px; color: var(--p22); }
.poi-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.poi-cats .chip { font-size: 13px; padding: 6px 10px; }
.poi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.poi-list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid rgba(63,2,1,.12); cursor: pointer; }
.poi-list li:hover { color: var(--orange); }
.poi-list .t { font-size: 12px; color: var(--ink-soft); display: block; }
.poi-list .min { font-weight: 700; color: var(--p22); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mapboxgl-popup-content { font-family: var(--text); border-radius: 0; border: 1px solid var(--p22); padding: 10px 14px; font-size: 13px; }
.mapboxgl-popup-content strong { display: block; font-size: 14px; }
.mapboxgl-ctrl-logo, .mapboxgl-ctrl-attrib { opacity: .6; }
@media (max-width: 700px) { .poi-list li span { font-size: 16px; } .poi-list li .t { font-size: 14px; } .poi-cats .chip { font-size: 14px; } }
@media (max-width: 960px) { .map-layout { grid-template-columns: 1fr; } .map-stage { min-height: 420px; } .map-side { border-left: 0; border-top: 1px solid var(--p22); max-height: none; } }
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.highlights > div { border-top: 2px solid var(--p22); padding-top: 14px; }
.highlights .big { font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--p22); line-height: 1; text-transform: uppercase; }
.highlights p { font-size: 15px; color: var(--ink-soft); margin: 8px 0 0; }
@media (max-width: 760px) { .highlights { grid-template-columns: 1fr 1fr; } }

/* Financing ------------------------------------------------------------- */
.fin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.fin-layout > * { min-width: 0; }
@media (max-width: 960px) { .fin-layout { grid-template-columns: minmax(0, 1fr); } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(255,69,0,.4); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--orange); }
.steps .step-title { font-size: 24px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: rgba(255,255,255,.75); margin: 0; }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,69,0,.5); margin-top: 8px; }
.pay > div { padding: 18px 16px; border-right: 1px solid rgba(255,69,0,.5); }
.pay > div:last-child { border-right: 0; }
.pay .pct { font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--orange); line-height: 1; }
.pay .t { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 6px; line-height: 1.4; }
@media (max-width: 640px) { .pay { grid-template-columns: 1fr; } .pay > div { border-right: 0; border-bottom: 1px solid rgba(255,69,0,.5); } .pay > div:last-child { border-bottom: 0; } }

.calc { background: #fff; color: var(--ink); padding: 28px; border: 1px solid var(--p22); }
.calc h3 { color: var(--p22); font-size: 30px; margin-bottom: 6px; }
.calc .sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.calc label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.calc .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.calc input, .calc select { width: 100%; min-width: 0; max-width: 100%; padding: 12px 14px; border: 1px solid var(--p22); background: #fff; font: inherit; font-size: 16px; }
.calc output { display: block; }
.calc .result { border-top: 2px solid var(--p22); padding-top: 16px; margin-top: 6px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 420px) { .calc { padding: 20px; } .calc .result { grid-template-columns: minmax(0, 1fr); } .calc .result .v { font-size: 32px; } }
.calc .result .k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.calc .result .v { font-family: var(--display); font-weight: 700; font-size: 38px; color: var(--p22); line-height: 1; margin-top: 4px; }
.calc .disclaimer { font-size: 12px; color: var(--ink-soft); margin: 16px 0 0; }
.partner { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 24px; padding: 18px 20px; border: 1px solid rgba(255,69,0,.5); }
.partner .badge { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--orange); line-height: 1; text-transform: uppercase; }
.partner p { font-size: 14px; margin: 0; color: rgba(255,255,255,.8); }

/* Developer ------------------------------------------------------------- */
.dev-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .dev-layout { grid-template-columns: 1fr; } }
.dev-logo { width: min(320px, 70%); margin-bottom: 28px; }
.dev-copy p { font-size: 18px; color: var(--ink-soft); }
.dev-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.dev-stats .num { font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--wine); line-height: 1; }
.dev-copy .btn-wine { background: var(--wine); border-color: var(--wine); }
.dev-copy .btn-wine:hover { background: var(--wine-deep); }
.dev-stats .lbl { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-top: 4px; }
.dev-photo { position: relative; }
.dev-photo .frame { aspect-ratio: 4 / 3; }

/* Contact --------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.agent { border: 1px solid rgba(255,69,0,.5); padding: 24px; margin-top: 28px; }
.agent .name { font-family: var(--display); font-weight: 700; font-size: 32px; text-transform: uppercase; line-height: 1; }
.agent .role { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--apricot); font-weight: 700; margin: 6px 0 16px; }
.agent a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 18px; font-weight: 600; }
.agent a:hover { color: var(--orange); }
.form { background: #fff; color: var(--ink); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--p22); display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--p22); background: #fff; font: inherit; font-size: 16px; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.form .consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--ink-soft); text-transform: none; letter-spacing: 0; font-weight: 500; }
.form .consent input { width: 24px; height: 24px; margin-top: 0; accent-color: var(--orange); }
.form .consent { min-height: 44px; }
.form .consent a { display: inline-block; padding-block: 12px; margin-block: -12px; }
#lead-form { scroll-margin-top: 88px; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { font-size: 14px; font-weight: 600; min-height: 1.4em; }
.form-msg.ok, .form-msg.err { color: var(--ink); padding-left: 12px; }
.form-msg.ok { border-left: 3px solid var(--green); }
.form-msg.err { border-left: 3px solid var(--orange); }
.form-msg:empty { padding: 0; border: 0; }
.form [aria-invalid="true"] { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--p22-deep); color: rgba(255,255,255,.8); padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer .footer-h { font-size: 20px; color: #fff; margin-bottom: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--apricot); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,69,0,.3); font-size: 12px; color: rgba(255,255,255,.55); }
.footer-logo { width: 150px; margin-bottom: 18px; }

/* Utilities ------------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Hidden only when JS runs (html.js, set inline in <head>; removed again if app.js has not started within 1.5 s) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.sticky-cta { position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 40; display: none; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; }
@media (max-width: 700px) { .sticky-cta { display: grid; transition: transform 240ms var(--ease), visibility 0s 0s; } .sticky-cta.is-hidden { transform: translateY(calc(100% + 16px)); visibility: hidden; transition: transform 240ms var(--ease), visibility 0s 240ms; } .sticky-cta .btn { justify-content: center; padding: 13px 6px; font-size: 19px; } body { padding-bottom: 84px; } }
body.drawer-open .sticky-cta { display: none; }

/* Consent bar (GA4). Non-modal, sits above the mobile sticky bar, equal-weight choices ------- */
.consent-bar { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 760px; margin-inline: auto; background: var(--p22); color: #fff; border: 1px solid rgba(255, 69, 0, 0.4); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); padding: 24px; display: grid; gap: 16px; transition: bottom 240ms var(--ease); }
.consent-bar p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.consent-bar a { color: #fff; }
.consent-bar :focus-visible { outline-color: var(--apricot); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.consent-actions .btn { flex: 1 1 0; justify-content: center; color: #fff; border-color: rgba(255, 255, 255, 0.7); padding: 13px 16px; font-size: 19px; }
.consent-actions .btn:hover { border-color: var(--apricot); color: var(--apricot); }
.consent-bar .link-btn { color: #fff; font-size: 15px; }
/* While the contact section is in view the bar moves up so it never covers the form or its submit */
.consent-bar.at-top { top: 84px; bottom: auto; }
.consent-bar .link-btn:hover { color: var(--apricot); }
.consent-prefs { border: 0; margin: 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 69, 0, 0.4); display: grid; gap: 8px; }
.consent-prefs legend { padding: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--apricot); margin-bottom: 8px; }
.consent-prefs label { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; min-height: 44px; font-size: 15px; }
.consent-prefs input { width: 24px; height: 24px; margin: 0; accent-color: var(--orange); }
.consent-prefs small { display: block; font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.footer-link { background: none; border: 0; padding: 0; color: inherit; font-size: 14px; text-align: left; }
.footer-link:hover { color: var(--apricot); }
@media (max-width: 700px) {
  .consent-bar { padding: 16px; gap: 12px; }
  .consent-bar p, .consent-prefs label { font-size: 16px; }
  .has-sticky .consent-bar { bottom: 84px; }
}
@media (max-width: 480px) { .consent-actions .link-btn { flex-basis: 100%; text-align: left; } }
@media (prefers-reduced-motion: reduce) { .consent-bar { transition: none; } }
