/* ECHOES components */

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r);
  background: var(--walnut); color: #fff; font: 500 16px/1 var(--sans); letter-spacing: .01em;
  transition: background var(--t-fast) var(--ease), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap; border: 1px solid transparent;
}
.btn:hover { background: var(--moss); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.btn--light { background: var(--linen); color: var(--forest); }
.btn--light:hover { background: #fff; }
.btn--block { width: 100%; }
.btn .arr { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) left calc(50% + 13px) / 0 1px no-repeat;
  transition: background-size var(--t-fast) var(--ease);
}
.link:hover { background-size: calc(100% - 22px) 1px; }
.link .arr { display: inline-block; transition: transform var(--t-fast); }
.link:hover .arr { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; color: var(--on-dark); display: flex; align-items: flex-end; overflow: hidden; background: var(--forest); }
@media (min-width: 1280px) { .hero { height: 100vh; min-height: 640px; } }
.hero__media--mobile { display: none; }
@media (max-width: 767px) { .hero__media--desktop { display: none; } .hero__media--mobile { display: block; } }
.section.facts-band { padding-top: 28px; padding-bottom: 36px; }
.facts-band .facts { gap: 20px var(--gutter); }
.facts-band .fact { padding-top: 12px; }
.facts-band .num { font-size: 36px; line-height: 40px; }
@media (min-width: 1280px) { .section.facts-band { padding-top: 56px; padding-bottom: 56px; } .facts-band .num { font-size: 56px; line-height: 60px; } }
.hero__media { position: absolute; inset: 0; }
.hero__media .media { position: absolute; inset: 0; background: transparent; }
.hero__media img { object-position: 30% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 24, 15, .62) 0%, rgba(12, 24, 15, .5) 38%, rgba(12, 24, 15, 0) 78%), linear-gradient(to bottom, rgba(12, 24, 15, .3), rgba(12, 24, 15, 0) 160px); pointer-events: none; }
.hero__content { position: relative; z-index: 2; padding-bottom: 40px; width: 100%; }
.hero h1 { color: #fff; max-width: 11.5em; }
.hero .eyebrow { color: rgba(255, 255, 255, .86); }
.hero__text { max-width: 30em; margin-top: 16px; color: rgba(255, 255, 255, .9); }
.hero .actions { margin-top: 28px; }
.hero .link { color: #fff; }
@media (min-width: 1280px) { .hero__content { padding-bottom: 72px; } }

.page-hero { position: relative; height: 32svh; min-height: 280px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--forest); }
@media (min-width: 1280px) { .page-hero { height: 40vh; min-height: 360px; } }
.page-hero .media { position: absolute; inset: 0; background: transparent; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 24, 15, .45), rgba(12, 24, 15, 0) 70%), linear-gradient(to bottom, rgba(12, 24, 15, .5), rgba(12, 24, 15, 0) 150px); }
.page-hero__content { position: relative; z-index: 2; padding-bottom: 32px; width: 100%; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255, 255, 255, .9); margin-top: 8px; max-width: 32em; }
.page-hero .eyebrow { color: rgba(255, 255, 255, .85); }

.page-head { padding: calc(var(--header-h) + 48px) 0 40px; }
@media (min-width: 1280px) { .page-head { padding: calc(var(--header-h) + 88px) 0 56px; } }

/* ---------- facts band ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px var(--gutter); }
.fact { border-top: 1px solid var(--line); padding-top: 16px; }
.fact .num { display: block; }
.fact > span:last-child { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 22px; }
.section--forest .fact { border-color: var(--line-light); }
@media (min-width: 1280px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact--long .num { font-size: calc(var(--fs-num) * .78); }

/* ---------- invest model ---------- */
.model { display: grid; gap: 48px; }
@media (min-width: 1280px) { .model { grid-template-columns: 5fr 7fr; gap: calc(var(--gutter) * 3); align-items: start; } }
.model__media { aspect-ratio: 4 / 5; }
@media (max-width: 767px) { .model__media { aspect-ratio: 4 / 3; } }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gutter); margin-top: 40px; }
.figures .num { font-size: clamp(32px, 9vw, var(--fs-num)); line-height: 1.1; }
@media (min-width: 768px) { .figures .num { font-size: calc(var(--fs-num) * .8); } }
.figure { border-top: 1px solid var(--line); padding-top: 16px; }
.figure > span:last-child { display: block; color: var(--muted); font-size: 15px; line-height: 22px; margin-top: 6px; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); font: 500 13px/1 var(--sans); color: var(--walnut); letter-spacing: .08em; }

/* ---------- genplan teaser ---------- */
.teaser { display: grid; gap: 32px; }
.teaser__scroll { position: relative; }
.teaser__map { position: relative; overflow: hidden; display: block; }
.teaser__hint { display: none; }
.map-label { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 8px; border-radius: 999px; background: rgba(22, 43, 27, .6); color: #fff; font: 500 15px/1 var(--serif); letter-spacing: .02em; white-space: nowrap; }
.map-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--mc); }
.btn--explore { min-height: 56px; padding: 0 28px; }
.teaser__map .zone { fill-opacity: .07; stroke-width: 1.2; stroke-opacity: .85; }
.teaser__map img { width: 100%; }
.teaser__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.zone { fill-opacity: .16; stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill-opacity var(--t-fast); }
.zone-label { font: 500 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.quarters { display: grid; gap: 0; }
.quarter { display: grid; grid-template-columns: 12px 1fr; gap: 0 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.quarter:last-child { border-bottom: 1px solid var(--line); }
.quarter i { width: 10px; height: 10px; border-radius: 50%; display: block; transform: translateY(-1px); }
.quarter b { font-weight: 500; color: var(--ink); margin-right: 8px; }
@media (min-width: 1280px) {
  .teaser { grid-template-columns: 8fr 4fr; align-items: end; gap: calc(var(--gutter) * 2); }
}
@media (max-width: 767px) {
  .teaser__scroll { margin: 0 calc(var(--pad) * -1); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .teaser__scroll::-webkit-scrollbar { display: none; }
  .teaser__map { width: 220%; }
  .teaser__hint { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
  .map-label { font-size: 14px; }
  .btn--explore { width: 100%; }
}

/* ---------- horizontal strip (scroll-snap) ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding: 0 var(--pad); overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip > * { scroll-snap-align: start; }
@media (min-width: 768px) { .strip { grid-auto-columns: 44%; } }
.strip--4 { }
@media (min-width: 1280px) {
  .strip--4 { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
  .strip--5 { grid-auto-columns: calc((100% - 3 * var(--gutter)) / 3.4); }
}
.strip-nav { display: none; gap: 8px; }
@media (min-width: 1280px) { .strip-nav { display: flex; } }
.strip-nav button { width: 48px; height: 48px; border: 1px solid currentColor; border-radius: var(--r); display: grid; place-items: center; opacity: .8; }
.strip-nav button:hover { opacity: 1; }
.strip-nav button[disabled] { opacity: .25; cursor: default; }

/* ---------- cards ---------- */
.card { display: block; position: relative; }
.card:hover .cover__in { transform: scale(1.02); }
.card__body { padding-top: 16px; }
.card__meta { color: var(--muted); font-size: 15px; line-height: 22px; margin-top: 4px; }
.card__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.card__index { font: 500 12px/1 var(--sans); letter-spacing: .12em; color: var(--walnut); }
.type-card .h3 { margin-top: 8px; }
.type-card .card__count { font-size: 14px; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; font: 500 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #fff; border-radius: var(--r); }
.card .badge { position: absolute; left: 12px; top: 12px; z-index: 2; }
.q-poliana { --q: var(--q-poliana); }
.q-voda { --q: var(--q-voda); }
.q-lis { --q: var(--q-lis); }
.badge[class*="q-"] { background: var(--q); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--st-free); }
.status--reserved::before { background: var(--st-reserved); }
.status--sold::before { background: var(--st-sold); }
.house-card.is-sold .cover__in { filter: saturate(.4); }
.house-card.is-sold .card__cta { display: none; }
.house-card .card__price { font-weight: 500; color: var(--ink); }
.house-card .h3 { display: flex; align-items: baseline; gap: 10px; }
.house-card .h3 small { font: 500 12px/1 var(--sans); color: var(--muted); letter-spacing: .08em; }

.cards { display: grid; gap: 48px var(--gutter); }
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 64px var(--gutter); } }

/* ---------- day strip ---------- */
.frame figcaption { margin-top: 14px; display: grid; grid-template-columns: 56px 1fr; gap: 8px; font-size: 15px; line-height: 22px; color: var(--on-dark-muted); }
.frame figcaption b { font-weight: 500; color: var(--sand); }
.frame { margin: 0; }

/* ---------- income ---------- */
.income { display: grid; gap: 40px; }
@media (min-width: 1280px) { .income { grid-template-columns: 5fr 7fr; gap: calc(var(--gutter) * 3); } }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .list li { grid-template-columns: 220px 1fr; gap: var(--gutter); } }
.list b { font-weight: 500; color: var(--ink); }
.list span { color: var(--muted); }

.acc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acc + .acc { border-top: 0; }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-weight: 500; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--t-fast); }
.acc[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.acc__body { padding: 0 0 24px; color: var(--text); max-width: 44em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { border: 1px solid var(--line); padding: 7px 12px; font-size: 14px; line-height: 18px; border-radius: var(--r); }

/* ---------- form ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 13px; line-height: 18px; color: var(--muted); padding: 0; }
.input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); color: var(--ink); transition: border-color var(--t-fast); }
textarea.input { min-height: 104px; resize: vertical; }
.input:focus { outline: none; border-color: var(--walnut); }
.field.is-invalid .input { border-color: #B4533E; }
.field__err { font-size: 13px; color: #B4533E; display: none; }
.field.is-invalid .field__err { display: block; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); font-size: 15px; color: var(--ink); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.seg input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.seg input:focus-visible + span { outline: 2px solid var(--walnut); outline-offset: 2px; }
.form__note { font-size: 13px; line-height: 20px; color: var(--muted); }
.form-success { display: none; }
.form-wrap.is-done .form { display: none; }
.form-wrap.is-done .form-success { display: grid; gap: 16px; }

.section--forest .input, .dark-form .input { background: rgba(255, 255, 255, .06); border-color: var(--line-light); color: var(--on-dark); }
.section--forest .input::placeholder { color: rgba(236, 231, 223, .45); }
.section--forest .field label, .section--forest .field legend, .section--forest .form__note { color: var(--on-dark-muted); }
.section--forest .seg span { border-color: var(--line-light); color: var(--on-dark); }
.section--forest .seg input:checked + span { background: var(--linen); color: var(--forest); border-color: var(--linen); }
.section--forest .btn:hover { background: var(--linen); color: var(--forest); }

.final { position: relative; overflow: hidden; }
.final__bg { position: absolute; inset: 0; opacity: .8; }
.final__bg .media { position: absolute; inset: 0; background: transparent; }
.final::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(22, 43, 27, .88) 0%, rgba(22, 43, 27, .6) 55%, rgba(22, 43, 27, .35) 100%); }
@media (max-width: 767px) { .final::before { background: linear-gradient(to bottom, rgba(22, 43, 27, .35) 0%, rgba(22, 43, 27, .8) 38%, rgba(22, 43, 27, .95) 100%); } .final .container { padding-top: 120px; } }
.final .container { position: relative; z-index: 2; }
.final__grid { display: grid; gap: 40px; }
@media (min-width: 1280px) { .final__grid { grid-template-columns: 6fr 5fr; gap: calc(var(--gutter) * 3); align-items: center; } }

/* ---------- modal / bottom sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 180; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 20, 14, .55); animation: fade var(--t-fast) both; }
.modal__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90svh; overflow: auto; background: var(--linen); padding: 12px var(--pad) 28px; box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); animation: sheet 260ms var(--ease) both; overscroll-behavior: contain; }
.modal__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 16px; }
.modal__close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; font-size: 26px; line-height: 1; color: var(--ink); }
.modal h2 { font-size: 30px; line-height: 36px; padding-right: 40px; }
.modal__house { margin-top: 8px; color: var(--walnut); font-weight: 500; }
.modal .form-wrap { margin-top: 24px; }
@media (min-width: 768px) {
  .modal__panel { left: 50%; top: 50%; bottom: auto; width: min(560px, calc(100% - 48px)); transform: translate(-50%, -50%); padding: 40px; animation: fade var(--t-fast) both; box-shadow: none; }
  .modal__grip { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }

/* ---------- floating / sticky CTAs ---------- */
.float-cta { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; min-height: 48px; box-shadow: none; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity var(--t-fast), transform var(--t-fast); }
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 1100px) { .float-cta { display: none; } }
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 var(--pad) env(safe-area-inset-bottom); background: var(--linen); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(100%); transition: transform var(--t-fast) var(--ease); }
.sticky-bar.is-visible { transform: none; }
.sticky-bar b { display: block; color: var(--ink); font-weight: 500; line-height: 20px; }
.sticky-bar small { color: var(--muted); font-size: 13px; }
@media (min-width: 1100px) { .sticky-bar { display: none; } }

/* ---------- chips / filters ---------- */
.toolbar { position: sticky; top: var(--header-h); z-index: 40; background: var(--linen); border-bottom: 1px solid var(--line); }
.toolbar__in { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
.toolbar__in .chips { grid-column: 1 / -1; grid-row: 2; }
.toolbar__in .counter { justify-self: end; }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); width: max-content; }
.view-switch button { min-height: 40px; padding: 0 16px; font-size: 15px; color: var(--ink); }
.view-switch button[aria-pressed="true"] { background: var(--forest); color: var(--on-dark); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; transition: background var(--t-fast), color var(--t-fast); white-space: nowrap; }
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--q, var(--walnut)); }
.chip-sep { flex: none; width: 1px; background: var(--line); margin: 6px 4px; }
.counter { font-size: 14px; color: var(--muted); }
.counter b { color: var(--ink); font-weight: 500; }
.chips .chip--reset { border-style: dashed; }
@media (min-width: 1280px) {
  .toolbar__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .toolbar__in .chips { grid-column: auto; grid-row: auto; }
  .chips { margin: 0; padding: 2px 0; flex-wrap: wrap; }
}
.empty { padding: 48px 0; color: var(--muted); }

/* ---------- genplan ---------- */
.gp { position: relative; background: #5c6b4f; overflow: hidden; }
.gp__viewport { position: relative; overflow: hidden; touch-action: none; cursor: grab; height: min(78svh, 760px); min-height: 440px; }
.gp__viewport.is-dragging { cursor: grabbing; }
.gp__stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.gp__stage img { width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; max-width: none; }
.gp__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gp .zone { fill-opacity: 0; stroke-opacity: 0; transition: fill-opacity var(--t-fast), stroke-opacity var(--t-fast); }
.gp.show-zones .zone { fill-opacity: .07; stroke-opacity: .85; stroke-width: 1.2; }
.gp .zone.is-hot { fill-opacity: .22; stroke-opacity: 1; }
.pins { position: absolute; inset: 0; }
.pin { position: absolute; transform: translate(-50%, -50%) scale(var(--pin-scale, 1)); width: 44px; height: 44px; display: grid; place-items: center; }
.pin__dot { min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; display: grid; place-items: center; font: 600 12px/1 var(--sans); color: #fff; background: var(--forest); border: 2px solid #fff; transition: transform var(--t-fast) var(--ease), background var(--t-fast); font-variant-numeric: tabular-nums; }
.pin--house .pin__dot { background: var(--q, var(--forest)); }
.pin--house.st-reserved .pin__dot { box-shadow: 0 0 0 3px var(--st-reserved); }
.pin--house.st-sold .pin__dot { background: var(--st-sold); }
.pin--poi .pin__dot { width: 22px; min-width: 22px; height: 22px; padding: 0; background: var(--linen); border-color: var(--forest); }
.pin--poi .pin__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--forest); }
.pin:hover .pin__dot, .pin.is-active .pin__dot { transform: scale(1.18); }
.pin.is-active .pin__dot { background: var(--walnut); }
.pin--poi.is-active .pin__dot { border-color: var(--walnut); }
.pin[hidden] { display: none; }
.gp.mode-status .pin--house .pin__dot { background: var(--st-free); }
.gp.mode-status .pin--house.st-reserved .pin__dot { background: var(--st-reserved); box-shadow: none; }
.gp.mode-status .pin--house.st-sold .pin__dot { background: var(--st-sold); }
.gp.is-dim .pin--house:not(.is-match) { opacity: .35; }

.gp__legend { position: absolute; left: 0; right: 0; top: 0; z-index: 5; padding: 12px var(--pad); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gp__legend::-webkit-scrollbar { display: none; }
.gp__legend .chip { background: rgba(236, 231, 223, .94); border-color: transparent; }
.gp__legend .chip[aria-pressed="true"] { background: var(--forest); color: var(--on-dark); }
.gp__zoom { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: grid; gap: 1px; background: var(--line); }
.gp__zoom button { width: 44px; height: 44px; background: var(--linen); color: var(--ink); font-size: 20px; }
.gp__hint { position: absolute; left: 12px; bottom: 12px; z-index: 5; font-size: 13px; color: #fff; background: rgba(22, 43, 27, .7); padding: 6px 10px; border-radius: var(--r); pointer-events: none; }

.tip { position: absolute; z-index: 20; width: 240px; background: var(--linen); color: var(--text); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity 150ms, transform 150ms; }
.tip.is-visible { opacity: 1; transform: none; }
.tip .media { aspect-ratio: 16 / 10; }
.tip__body { padding: 12px 14px 14px; }
.tip__title { font-weight: 500; color: var(--ink); }
.tip__text { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 2px; }

.gp-panel { position: absolute; top: 0; right: 0; bottom: 0; z-index: 30; width: 400px; background: var(--linen); overflow: auto; transform: translateX(100%); transition: transform 260ms var(--ease); }
.gp-panel.is-open { transform: none; }
.gp-panel__body { padding: 24px; display: grid; gap: 12px; }
.gp-panel__close { position: absolute; right: 8px; top: 8px; z-index: 2; width: 44px; height: 44px; background: var(--linen); font-size: 24px; color: var(--ink); }
.gp-panel h3 { font: 500 30px/36px var(--serif); color: var(--ink); }
.gp-panel .specs-inline { color: var(--muted); font-size: 15px; }
@media (max-width: 1099px) {
  .gp-panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 50svh; min-height: 360px; transform: translateY(100%); box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); z-index: 120; }
  .gp-panel .media { aspect-ratio: 16 / 9; }
  .tip { display: none; }
}

/* ---------- house page ---------- */
.house-top { padding-top: var(--header-h); }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { flex: none; min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs [aria-current="true"] { color: var(--ink); border-color: var(--ink); }
.gallery { position: relative; }
.gallery__main { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #cfc8bc; }
@media (min-width: 768px) { .gallery__main { aspect-ratio: 16 / 10; } }
.gallery__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track > * { flex: 0 0 100%; scroll-snap-align: start; height: 100%; }
.gallery__track img { width: 100%; height: 100%; object-fit: cover; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; background: rgba(22, 43, 27, .72); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: var(--r); }
.gallery__arrows { position: absolute; inset: 50% 12px auto; display: none; justify-content: space-between; pointer-events: none; transform: translateY(-50%); }
.gallery__arrows button { pointer-events: auto; width: 48px; height: 48px; background: rgba(236, 231, 223, .92); color: var(--ink); font-size: 20px; border-radius: var(--r); }
@media (min-width: 1100px) { .gallery__arrows { display: flex; } }
.thumbs { display: none; gap: 8px; margin-top: 8px; }
.thumbs button { width: 112px; aspect-ratio: 16 / 10; overflow: hidden; opacity: .55; transition: opacity var(--t-fast); }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .thumbs { display: flex; flex-wrap: wrap; } }

.house-layout { display: grid; gap: 48px; }
@media (min-width: 1280px) { .house-layout { grid-template-columns: 7fr 5fr; gap: calc(var(--gutter) * 3); align-items: start; } .house-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.house-title { margin-top: 32px; }
.house-title .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; color: var(--muted); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); margin-top: 32px; }
@media (min-width: 768px) { .specs { grid-template-columns: repeat(3, 1fr); } }
.spec { padding: 16px 0; border-top: 1px solid var(--line); }
.spec b { display: block; font: 500 32px/38px var(--serif); color: var(--ink); }
.spec span { font-size: 14px; color: var(--muted); }
.plan { background: #fff; border: 1px solid var(--line); cursor: zoom-in; padding: 12px; }
.plan img { width: 100%; }
.plan-switch { display: flex; gap: 8px; margin-top: 16px; }
.walk { list-style: none; margin: 0; padding: 0; }
.walk li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.walk li span:last-child { color: var(--muted); white-space: nowrap; }
.minimap { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.minimap img { width: 100%; height: 100%; object-fit: cover; }
.minimap .pin { pointer-events: none; }
.minimap .pin:not(.is-active) .pin__dot { min-width: 12px; width: 12px; height: 12px; padding: 0; font-size: 0; border-width: 1.5px; }
.invest-box { background: var(--paper); padding: 28px; display: grid; gap: 16px; }
.invest-box .row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.invest-box .row b { font-weight: 500; color: var(--ink); text-align: right; }
.lightbox { position: fixed; inset: 0; z-index: 190; background: rgba(255, 255, 255, .98); display: none; overflow: auto; cursor: zoom-out; }
.lightbox.is-open { display: block; }
.lightbox img { width: 200%; max-width: none; margin: 24px; }
@media (min-width: 1100px) { .lightbox img { width: calc(100% - 96px); margin: 48px; } }

/* ---------- territory ---------- */
.alt { display: grid; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.alt:first-child { border-top: 0; padding-top: 0; }
.alt__text { border-left: 2px solid var(--q, var(--walnut)); padding-left: 20px; }
.alt__text h3 { font: 500 var(--fs-h2)/var(--lh-h2) var(--serif); color: var(--ink); margin: 12px 0 12px; }
.alt__text .count { font-size: 14px; color: var(--muted); margin-top: 16px; }
@media (min-width: 1280px) {
  .alt { grid-template-columns: 7fr 5fr; gap: calc(var(--gutter) * 3); align-items: center; padding: 64px 0; }
  .alt:nth-child(even) .alt__media { order: 2; }
}
.infra { display: grid; gap: 40px var(--gutter); }
@media (min-width: 768px) { .infra { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .infra { grid-template-columns: repeat(3, 1fr); } }
.infra h3 { margin-top: 16px; }
.infra p { color: var(--muted); font-size: 15px; line-height: 24px; margin-top: 6px; }
.rituals { display: grid; gap: var(--gutter); }
@media (min-width: 768px) { .rituals { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .rituals { grid-template-columns: repeat(4, 1fr); } }
.ritual { border-top: 1px solid var(--line-light); padding: 24px 0 0; display: grid; gap: 10px; align-content: start; }
.ritual h3 { color: var(--on-dark); }
.ritual p { color: var(--on-dark-muted); font-size: 15px; line-height: 24px; }
.ritual q { font: 400 24px/30px var(--serif); color: var(--sand); quotes: "«" "»"; margin-top: 8px; display: block; }
.daylight figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.daylight figure { margin: 0; }
.location { display: grid; gap: 32px; }
@media (min-width: 1280px) { .location { grid-template-columns: 5fr 7fr; gap: calc(var(--gutter) * 3); align-items: center; } }
.loc-map { background: var(--paper); aspect-ratio: 16 / 10; }
.loc-map svg { width: 100%; height: 100%; }

/* ---------- developer ---------- */
.projects { display: grid; gap: 32px var(--gutter); }
@media (min-width: 768px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 28px 32px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: -8px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--forest); background: var(--linen); }
.timeline li.done::after { background: var(--forest); }
.timeline li.progress::after { background: var(--walnut); border-color: var(--walnut); }
.timeline b { display: block; font-weight: 500; color: var(--ink); }
.timeline small { color: var(--muted); font-size: 14px; }
@media (min-width: 1100px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: var(--gutter); }
  .timeline li { padding: 32px 0 0; }
  .timeline li::before { left: 12px; right: calc(var(--gutter) * -1); top: 5px; bottom: auto; width: auto; height: 1px; }
  .timeline li:last-child::before { display: none; }
  .timeline li::after { top: 0; }
}
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { border-top: 1px solid var(--line); }
.docs li:last-child { border-bottom: 1px solid var(--line); }
.docs a, .docs span { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 60px; }
.docs small { color: var(--muted); font-size: 13px; }
.two-col { display: grid; gap: 40px; }
@media (min-width: 1280px) { .two-col { grid-template-columns: 5fr 7fr; gap: calc(var(--gutter) * 3); } }

/* ---------- contacts ---------- */
.big-phone { font: 500 clamp(30px, 7vw, 56px)/1.1 var(--serif); color: var(--ink); display: inline-block; margin-top: 24px; }
.messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.addr { display: grid; gap: var(--gutter); }
@media (min-width: 768px) { .addr { grid-template-columns: 1fr 1fr; } }
.addr__card { background: var(--paper); padding: 28px; display: grid; gap: 8px; align-content: start; }
.addr__card h3 { margin-bottom: 4px; }

/* ---------- ambient (nature-only motion inside media) ---------- */
.amb { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.amb-gl { opacity: 0; transition: opacity 1.2s; }
.amb-gl.is-ready { opacity: 1; }
.amb-steam span { position: absolute; left: var(--x); top: var(--y); width: var(--w, 16%); aspect-ratio: 1; margin-left: calc(var(--w, 16%) / -2); border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 65%); filter: blur(10px); opacity: 0; animation: steam 7s ease-out infinite; mix-blend-mode: screen; }
.amb-steam span:nth-child(2) { animation-delay: 2.3s; left: calc(var(--x) + 3%); }
.amb-steam span:nth-child(3) { animation-delay: 4.6s; left: calc(var(--x) - 3%); }
.amb-fire span { position: absolute; left: var(--x); top: var(--y); width: var(--w, 30%); aspect-ratio: 1.4; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 170, 70, .45), rgba(255, 120, 30, .12) 45%, transparent 70%); mix-blend-mode: screen; animation: flicker 2.4s steps(1, end) infinite; }
.amb-fire span:nth-child(2) { width: calc(var(--w, 30%) * .45); background: radial-gradient(ellipse, rgba(255, 210, 120, .5), transparent 70%); animation: flicker2 1.3s ease-in-out infinite alternate; }
@keyframes steam { 0% { opacity: 0; transform: translateY(0) scale(.6); } 25% { opacity: .75; } 100% { opacity: 0; transform: translateY(-120%) scale(1.6); } }
@keyframes glint { from { transform: translateX(-2%); opacity: .6; } to { transform: translateX(3%); opacity: 1; } }
@keyframes flicker { 0% { opacity: .85; } 12% { opacity: .6; } 25% { opacity: .95; } 40% { opacity: .7; } 55% { opacity: 1; } 70% { opacity: .65; } 85% { opacity: .9; } }
@keyframes flicker2 { from { opacity: .5; transform: translate(-50%, -50%) scale(.92); } to { opacity: 1; transform: translate(-50%, -54%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .amb { display: none; } }

.page-hero .placeholder-text, .hero .placeholder-text, .section--forest .placeholder-text, .footer .placeholder-text, .menu .placeholder-text { color: var(--sand); }

/* perks mosaic (home) */
.perks { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
.perks::-webkit-scrollbar { display: none; }
.perk { margin: 0; scroll-snap-align: start; }
.perk figcaption { margin-top: 14px; font: 500 22px/1.2 var(--serif); color: var(--ink); }
@media (min-width: 768px) { .perks { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; gap: 40px var(--gutter); } }
@media (min-width: 1280px) { .perks { grid-template-columns: repeat(3, 1fr); gap: 56px var(--gutter); } .perk figcaption { font-size: 26px; } }
/* income names */
.names { list-style: none; margin: 0 0 8px; padding: 0; display: grid; }
.names li { font: 500 26px/1.2 var(--serif); color: var(--ink); padding: 16px 0; border-top: 1px solid var(--line); }
@media (min-width: 1280px) { .names li { font-size: 32px; padding: 20px 0; } }
.dev-logo { width: 200px; margin-bottom: 48px; }
.dev-logo .placeholder-media { aspect-ratio: 2 / 1; }

/* ---------- round 3 ---------- */
.btn--glass { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--glass:hover { background: #fff; color: var(--forest); border-color: #fff; }
.ico { flex: none; }
.seg span { gap: 8px; }
.form__safe { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: var(--muted); }
.section--forest .form__safe { color: var(--on-dark-muted); }

.strip--perks { grid-auto-columns: 72%; }
@media (min-width: 768px) { .strip--perks { grid-auto-columns: 40%; } }
@media (min-width: 1280px) { .strip--perks { grid-auto-columns: calc((100% - 3 * var(--gutter)) / 3.6); } }
.strip--perks .perk figcaption { font-size: 22px; margin-top: 12px; }

.steps--rich li p { color: var(--text); }
.steps--rich b { font-weight: 500; color: var(--ink); }
.closing { margin-top: 32px; }
.closing__title { font: 500 28px/1.2 var(--serif); color: var(--ink); }
.closing__text { font: 400 22px/1.35 var(--serif); color: var(--walnut); margin-top: 6px; }
@media (min-width: 1280px) { .closing__title { font-size: 34px; } .closing__text { font-size: 26px; } }

.quarter__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.quarter__head b { font: 500 24px/1.1 var(--serif); color: var(--ink); margin: 0; }
.quarter__head small { font: 500 10.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.quarter__text { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 22px; }

.strip--periods { grid-auto-columns: 86%; }
@media (min-width: 768px) { .strip--periods { grid-auto-columns: 62%; } }
@media (min-width: 1280px) { .strip--periods { grid-auto-columns: calc((100% - var(--gutter)) / 2.25); } }
.period__name { font: 500 34px/1.1 var(--serif); color: var(--on-dark); margin-top: 20px; }
.period__list { list-style: none; margin: 12px 0 0; padding: 0; }
.period__list li { display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-light); font-size: 15px; line-height: 22px; color: var(--on-dark-muted); }
.period__list b { font-weight: 500; color: var(--sand); font-variant-numeric: tabular-nums; }
.day-outro { margin-top: 48px; font: 400 26px/1.3 var(--serif); color: var(--on-dark); }
.day-outro span { font-style: normal; letter-spacing: .2em; font-size: 14px; color: var(--sand); margin-left: 10px; font-family: var(--sans); }

.reasons { display: grid; gap: 40px; }
@media (min-width: 1280px) { .reasons { grid-template-columns: 5fr 7fr; gap: calc(var(--gutter) * 3); } }
.reasons__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
.reasons__list li { font: 500 20px/1.2 var(--serif); color: var(--ink); padding: 14px 0; border-top: 1px solid var(--line); }
@media (min-width: 1280px) { .reasons__list li { font-size: 26px; padding: 18px 0; } }
.flow { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 500; color: var(--ink); line-height: 1.5; }
.flow__arr { color: var(--walnut); margin: 0 4px; }

.return { background: var(--paper); }
.return__title { font: 500 var(--fs-h2)/var(--lh-h2) var(--serif); color: var(--ink); max-width: 16em; }
.return__text { font: 400 22px/1.4 var(--serif); color: var(--walnut); margin-top: 12px; max-width: 32em; }
@media (min-width: 1280px) { .return__text { font-size: 28px; } }

/* developer */
.dev-hero { background: var(--forest); color: var(--on-dark); padding: calc(var(--header-h) + 40px) 0 56px; }
.dev-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1100px) { .dev-hero__grid { grid-template-columns: 5fr 6fr; gap: calc(var(--gutter) * 3); } .dev-hero { padding-bottom: 88px; } }
.dev-logo { width: 220px; height: auto; margin-bottom: 28px; }
@media (min-width: 1280px) { .dev-logo { width: 300px; } }
.dev-hero .lead { color: var(--on-dark); font: 400 26px/1.3 var(--serif); max-width: 20em; }
.dev-hero__media { aspect-ratio: 4 / 3; position: relative; }
.dev-hero__media .media { position: absolute; inset: 0; }
.projects-list { list-style: none; margin: 0; padding: 0; }
.projects-list li { border-top: 1px solid var(--line); }
.projects-list li:last-child { border-bottom: 1px solid var(--line); }
.projects-list a, .projects-list .row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; }
.projects-list b { font: 500 26px/1.2 var(--serif); color: var(--ink); }
.projects-list a > span, .projects-list .row > span { grid-column: 1; color: var(--muted); font-size: 15px; }
.projects-list i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; color: var(--walnut); }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1100px) { .split { grid-template-columns: 1fr 1fr; gap: calc(var(--gutter) * 3); } }
.echoes-band { position: relative; overflow: hidden; background: var(--forest); color: var(--on-dark); padding: 120px 0; }
.echoes-band__bg { position: absolute; inset: 0; opacity: .55; }
.echoes-band__bg .media { position: absolute; inset: 0; }
.echoes-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(22, 43, 27, .85), rgba(22, 43, 27, .3)); }
.echoes-band__in { position: relative; z-index: 2; }
.echoes-band__logo { display: block; width: 200px; color: var(--on-dark); margin-bottom: 24px; }
.echoes-band h2 { color: var(--on-dark); max-width: 14em; }

/* contacts */
.contact-hero { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1100px) { .contact-hero { grid-template-columns: 6fr 5fr; gap: calc(var(--gutter) * 3); } }
.channels { list-style: none; margin: 32px 0 0; padding: 0; }
.channels li { border-top: 1px solid var(--line); }
.channels li:last-child { border-bottom: 1px solid var(--line); }
.channels a { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.channel__ico { width: 48px; height: 48px; border-radius: 50%; background: var(--forest); color: var(--on-dark); display: grid; place-items: center; flex: none; transition: background var(--t-fast); }
.channels a:hover .channel__ico { background: var(--walnut); }
.channels small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.channels b { font-weight: 500; color: var(--ink); font-size: 18px; }
.office__addr { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 18px; line-height: 28px; color: var(--on-dark); }
.office__form { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-light); padding: clamp(24px, 4vw, 40px); }
.strip--gallery { grid-auto-columns: 72%; }
@media (min-width: 768px) { .strip--gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; } }

/* ---------- emotional bands & moments ---------- */
.band { position: relative; height: 78svh; min-height: 460px; max-height: 820px; overflow: hidden; display: flex; align-items: flex-end; background: var(--forest); }
.band > .media { position: absolute; inset: 0; background: transparent; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 24, 15, .55), rgba(12, 24, 15, 0) 45%); pointer-events: none; }
.band__in { position: relative; z-index: 2; padding-bottom: 40px; }
.band__text { font: 400 clamp(30px, 5vw, 60px)/1.1 var(--serif); color: #fff; max-width: 14em; }
@media (min-width: 1280px) { .band__in { padding-bottom: 72px; } }

.moments { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
.moments::-webkit-scrollbar { display: none; }
.moment { aspect-ratio: 4 / 5; scroll-snap-align: start; height: auto; }
@media (min-width: 768px) {
  .moments { grid-auto-flow: row; overflow: visible; margin: 0; padding: 0; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; }
  .moment { aspect-ratio: auto; min-height: 240px; }
  .moment--1 { grid-column: span 3; grid-row: span 2; }
  .moment--2, .moment--3 { grid-column: span 3; }
  .moment--4, .moment--5 { grid-column: span 3; }
  .moment--6, .moment--7 { grid-column: span 3; aspect-ratio: 3 / 2; }
}
@media (min-width: 1280px) {
  .moments { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 260px; }
  .moment { min-height: 0; aspect-ratio: auto; }
  .moment--1 { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .moment--2 { grid-column: 6 / span 4; grid-row: 1 / span 1; }
  .moment--3 { grid-column: 10 / span 3; grid-row: 1 / span 2; }
  .moment--4 { grid-column: 6 / span 4; grid-row: 2 / span 1; }
  .moment--5 { grid-column: 1 / span 3; grid-row: 3 / span 2; }
  .moment--6 { grid-column: 4 / span 5; grid-row: 3 / span 2; aspect-ratio: auto; }
  .moment--7 { grid-column: 9 / span 4; grid-row: 3 / span 2; aspect-ratio: auto; }
}

/* round 5 */
.day-outro { display: grid; gap: 10px; }
.day-outro span { justify-self: end; margin-left: 0; }
@media (max-width: 767px) { .footer__grid > div:first-child { display: flex; justify-content: center; } .footer__logo { width: 200px; } }

/* developer projects gallery */
.projects { display: grid; gap: var(--gutter); }
.project { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--forest); color: #fff; }
.project > .media { position: absolute; inset: 0; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 24, 15, .7), rgba(12, 24, 15, 0) 55%); pointer-events: none; }
.project:hover .cover__in { transform: scale(1.03); }
.project__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 20px 22px; }
.project__cap b { font: 500 28px/1.1 var(--serif); }
.project__cap small { grid-column: 1; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .85); }
.project__cap i { grid-column: 2; grid-row: 1 / 3; align-self: end; font-style: normal; font-size: 22px; transition: transform var(--t-fast); }
.project:hover .project__cap i { transform: translate(3px, -3px); }
@media (min-width: 768px) {
  .projects { grid-template-columns: repeat(6, 1fr); }
  .project--1, .project--2 { grid-column: span 3; }
  .project--3, .project--4, .project--5 { grid-column: span 2; }
  .project--3 .project__cap b, .project--4 .project__cap b, .project--5 .project__cap b { font-size: 24px; }
}

/* developer hero on light background (round 7) */
.dev-hero { background: var(--linen); color: var(--ink); padding: calc(var(--header-h) + 32px) 0 48px; }
.dev-hero .lead { color: var(--text); font: 400 18px/28px var(--sans); max-width: 26em; margin-top: 0; }
.dev-logo { width: 190px; margin-bottom: 20px; }
@media (min-width: 1280px) { .dev-logo { width: 240px; margin-bottom: 24px; } .dev-hero .lead { font-size: 20px; line-height: 30px; } }
.dev-hero .actions { margin-top: 24px; }
@media (min-width: 768px) {
  .projects--n4 .project { grid-column: span 3; }
  .projects--n4 .project .project__cap b { font-size: 28px; }
}

/* gallery slides: landscape fills the frame, portrait/square shown whole over a soft blurred copy */
.slide { position: relative; overflow: hidden; }
.slide > img { width: 100%; height: 100%; object-fit: cover; }
.slide--fit { background: var(--forest); }
.gallery__track .slide--fit .slide__bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(28px) brightness(.72) saturate(1.1); }
.gallery__track .slide--fit .slide__img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.thumbs img.slide__bg { display: none; }
.thumbs .slide__img, .thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; } .thumbs button { flex: none; } }

/* developer projects: 6 cards = two rows of three */
@media (min-width: 768px) {
  .projects--n6 .project { grid-column: span 3; }
}
@media (min-width: 1100px) {
  .projects--n6 .project { grid-column: span 2; }
  .projects--n6 .project__cap b { font-size: 24px; }
}

/* ---------- motion: image reveal ---------- */
.motion .reveal { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .9s var(--ease) var(--reveal-delay, 0ms), transform 1.1s var(--ease) var(--reveal-delay, 0ms); will-change: opacity, transform; }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .reveal:not(:has(canvas)) .cover__in > img { transform: scale(1.06); transition: transform 1.6s var(--ease) var(--reveal-delay, 0ms); }
.motion .reveal.is-in:not(:has(canvas)) .cover__in > img { transform: none; }

/* ---------- soft blurred shade behind white text on photos ---------- */
.hero__content, .page-hero__content, .band__in, .echoes-band__in, .project__cap { isolation: isolate; }
.hero__content::before, .page-hero__content::before, .band__in::before, .echoes-band__in::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: calc(var(--pad) - 80px); bottom: -40px; width: min(860px, 100%); height: calc(100% + 60px);
  background: radial-gradient(ellipse 60% 55% at 35% 60%, rgba(10, 20, 13, .5), rgba(10, 20, 13, .22) 55%, rgba(10, 20, 13, 0) 78%);
  filter: blur(24px);
}
.project__cap::before { content: ""; position: absolute; z-index: -1; inset: -30px -10px -10px -30px; background: radial-gradient(ellipse 70% 80% at 25% 80%, rgba(10, 20, 13, .55), rgba(10, 20, 13, 0) 75%); filter: blur(16px); pointer-events: none; }
.hero h1, .hero__text, .hero .eyebrow, .page-hero h1, .page-hero p, .band__text, .echoes-band h2, .project__cap b, .project__cap small, .map-label { text-shadow: 0 1px 14px rgba(8, 16, 10, .35); }
.gallery__count { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* =================== round 9: nature motifs =================== */

/* ---------- foreground willow foliage (blurred, swaying) ---------- */
.has-leaves, .hero, .atmo, .final, .page-head { position: relative; overflow: clip; }
.leaves { position: absolute; z-index: 3; pointer-events: none; filter: blur(var(--blur, 3px)); opacity: .92; }
.leaves svg { width: 100%; height: auto; display: block; overflow: visible; }
.leaves--sm { width: clamp(120px, 22vw, 240px); }
.leaves--md { width: clamp(160px, 30vw, 340px); }
.leaves--lg { width: clamp(200px, 40vw, 480px); }
.leaves--tl { left: -2%; top: -4%; }
.leaves--tr { right: -2%; top: -4%; }
.leaves--bl { left: -2%; bottom: -12%; }
.leaves--br { right: -2%; bottom: -12%; }
.hero .leaves--tr { top: calc(var(--header-h) - 30px); right: -6%; }
@media (max-width: 767px) { .hero .leaves--tr { width: 46vw; top: 40px; right: -10%; } .leaves--sm { width: 34vw; } }
.leaves > svg { transform-origin: 100% 0; animation: sway 9s ease-in-out infinite alternate; }
.leaves--tl > svg, .leaves--bl > svg { transform-origin: 0 0; animation-duration: 10.5s; }
.leaves .leaves__a, .leaves .leaves__b { transform-box: fill-box; transform-origin: 50% 0; animation: flutter 4.6s ease-in-out infinite alternate; }
.leaves .leaves__b { animation-duration: 3.4s; animation-delay: -1.7s; }
@keyframes sway { 0% { transform: rotate(-2.2deg); } 60% { transform: rotate(1.6deg); } 100% { transform: rotate(-.6deg) translateX(4px); } }
@keyframes flutter { from { transform: skewX(-2deg) translateY(0); } to { transform: skewX(2.5deg) translateY(2px); } }
.section > .container, .page-head > .container, .final > .container { position: relative; z-index: 2; }

/* ---------- atmosphere block ---------- */
.atmo { min-height: min(110vw, 900px); display: flex; align-items: flex-start; background: var(--paper); }
@media (min-width: 1280px) { .atmo { min-height: 92vh; } }
.atmo > .media { position: absolute; inset: 0; background: transparent; }
.atmo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, var(--paper) 0%, color-mix(in srgb, var(--paper) 88%, transparent) 22%, color-mix(in srgb, var(--paper) 35%, transparent) 42%, transparent 60%); }
.atmo__in { position: relative; z-index: 4; text-align: center; padding-top: clamp(40px, 8vw, 88px); display: grid; justify-items: center; }
.atmo__logo { display: grid; justify-items: center; gap: 6px; width: clamp(150px, 26vw, 240px); color: var(--forest); }
.atmo__logo svg { width: 100%; height: auto; }
.atmo__logo small { font: 500 clamp(7px, 1vw, 9px)/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.atmo__rule { width: 1px; height: 34px; background: var(--forest); opacity: .5; margin: 18px 0 14px; }
.atmo__eyebrow { color: var(--walnut); letter-spacing: .3em; margin: 0 0 10px; }
.atmo__title { font: 500 clamp(30px, 5.4vw, 72px)/1.02 var(--serif); text-transform: uppercase; letter-spacing: .01em; color: var(--forest); max-width: 14em; text-wrap: balance; }

/* ---------- facts icons ---------- */
.fact__ico { display: block; color: var(--walnut); margin-bottom: 8px; }
.fact__ico .ico { width: 24px; height: 24px; }

/* ---------- day: icons, mobile timeline, seasons ---------- */
.period__name { display: flex; align-items: center; gap: 10px; }
.period__ico { color: var(--sand); display: inline-flex; }
.tl { display: none; list-style: none; margin: 0; padding: 0; position: relative; }
@media (max-width: 767px) {
  .strip--periods, .section--forest .strip-nav { display: none; }
  .tl { display: block; }
  .tl::before { content: ""; position: absolute; left: 111px; top: 18px; bottom: 18px; width: 1px; background: var(--line-light); }
  /* the part already scrolled past: a bright, thicker line that grows down to the next icon */
  .tl::after { content: ""; position: absolute; left: 110px; top: 18px; width: 3px; height: var(--tl-fill, 0px); border-radius: 2px;
    background: linear-gradient(to bottom, rgba(201, 180, 154, .55), var(--sand)); box-shadow: 0 0 14px rgba(201, 180, 154, .45); }
  .tl__period { display: grid; grid-template-columns: 96px 30px 1fr; align-items: center; padding: 22px 0 10px; }
  .tl__period .tl__ico { grid-column: 2; justify-self: center; width: 30px; height: 30px; border-radius: 50%; background: var(--forest); border: 1px solid var(--line-light); color: var(--sand); display: grid; place-items: center; position: relative; z-index: 1; }
  .tl__period .tl__ico .ico { width: 18px; height: 18px; }
  .tl__period b { grid-column: 3; padding-left: 12px; font: 500 28px/1 var(--serif); color: var(--on-dark); }
  .tl__item { display: grid; grid-template-columns: 96px 30px 1fr; align-items: center; padding: 7px 0; position: relative; }
  .tl__item::before { content: ""; grid-column: 2; grid-row: 1; justify-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 4px var(--forest); position: relative; z-index: 1; }
  .tl__img { grid-column: 1; grid-row: 1; border-radius: 10px; overflow: hidden; }
  .tl__item p { grid-column: 3; grid-row: 1; padding-left: 12px; font-size: 15px; line-height: 21px; color: var(--on-dark-muted); }
  .tl__item p b { font: 500 19px/1 var(--serif); color: var(--on-dark); }
}
.seasons { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-light); display: grid; gap: 18px; justify-items: center; text-align: center; }
.seasons ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; }
.seasons li { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); }
.seasons li + li { border-left: 1px solid var(--line-light); }
.seasons li .ico { color: var(--sand); }
.seasons p { font: 400 22px/1.3 var(--serif); color: var(--on-dark-muted); }
@media (max-width: 767px) { .seasons li { padding: 0 10px; font-size: 11px; } .seasons li .ico { width: 18px; height: 18px; } }

/* ---------- water strip with falling drops ---------- */
.water { position: relative; height: clamp(200px, 34vw, 420px); overflow: hidden; background: #1b2d24; }
.water > .media { position: absolute; inset: 0; background: transparent; }
.water::before { content: ""; position: absolute; inset: 0 0 auto; height: 45%; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, var(--forest), transparent); }
.water::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: 2; pointer-events: none; background: linear-gradient(to top, var(--forest), transparent); }
.drop { position: absolute; top: 0; z-index: 3; width: 5px; height: 12px; margin-left: -2.5px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 40% 70%, rgba(255, 255, 255, .95), rgba(210, 232, 236, .55) 55%, rgba(210, 232, 236, 0) 75%);
  animation: dropfall .95s cubic-bezier(.55, 0, 1, .45) forwards; pointer-events: none; }
@keyframes dropfall { from { transform: translateY(-20px) scaleY(.8); opacity: 0; } 12% { opacity: 1; } to { transform: translateY(var(--fall)) scaleY(1.25); opacity: .9; } }

/* ---------- livelier steam and fire ---------- */
.amb-steam span { animation: steam 8s ease-out infinite; filter: blur(12px); }
.amb-steam span:nth-child(2) { animation-delay: 1.6s; left: calc(var(--x) + 3%); }
.amb-steam span:nth-child(3) { animation-delay: 3.2s; left: calc(var(--x) - 3%); }
.amb-steam span:nth-child(4) { animation-delay: 4.8s; left: calc(var(--x) + 1.5%); width: calc(var(--w, 16%) * .7); }
.amb-steam span:nth-child(5) { animation-delay: 6.4s; left: calc(var(--x) - 1.5%); width: calc(var(--w, 16%) * .8); }
@keyframes steam { 0% { opacity: 0; transform: translate(0, 0) scale(.55); } 20% { opacity: .8; } 60% { opacity: .45; transform: translate(6%, -70%) scale(1.25); } 100% { opacity: 0; transform: translate(-4%, -140%) scale(1.8); } }
.amb-fire span:nth-child(n+3) { width: 3px; height: 3px; aspect-ratio: auto; border-radius: 50%; background: #ffc46b; box-shadow: 0 0 6px 2px rgba(255, 150, 60, .7); left: calc(var(--x) + var(--dx, 0%)); top: var(--y); transform: none; mix-blend-mode: screen; animation: spark 2.6s ease-out infinite; opacity: 0; }
.amb-fire span:nth-child(3) { --dx: -2%; animation-delay: 0s; }
.amb-fire span:nth-child(4) { --dx: 1.5%; animation-delay: .7s; }
.amb-fire span:nth-child(5) { --dx: 0%; animation-delay: 1.3s; }
.amb-fire span:nth-child(6) { --dx: 3%; animation-delay: 1.9s; }
.amb-fire span:nth-child(7) { --dx: -3.5%; animation-delay: 2.2s; }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -120px); } }

/* ---------- developer highlights + map ---------- */
.highlights { list-style: none; margin: 0; padding: 0; }
.highlights li { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 25px; color: var(--ink); }
.highlights li:last-child { border-bottom: 1px solid var(--line); }
.hl__ico { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--walnut); }
.devmap { position: relative; overflow: hidden; border-radius: 4px; }
.devmap__in { position: relative; }
.devmap img { width: 100%; height: auto; display: block; }
@media (max-width: 767px) {
  .devmap { margin: 0 calc(var(--pad) * -1); border-radius: 0; overflow-x: auto; scrollbar-width: none; }
  .devmap::-webkit-scrollbar { display: none; }
  .devmap__in { width: 180%; }
}
.devpin { position: absolute; transform: translate(-7px, calc(-50% + var(--dy, 0px))); display: flex; align-items: center; gap: 8px; white-space: nowrap; pointer-events: none; }
.devpin i { width: 14px; height: 14px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 4px rgba(201, 180, 154, .25), 0 0 18px rgba(201, 180, 154, .5); flex: none; }
.devpin b { font: 500 13px/1 var(--sans); color: var(--on-dark); background: rgba(16, 35, 26, .78); padding: 5px 8px; border-radius: 3px; }
.devpin--left { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), calc(-50% + var(--dy, 0px))); }
.devpin--echoes i { width: 20px; height: 20px; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .18), 0 0 26px rgba(255, 255, 255, .6); animation: pulse 2.6s ease-in-out infinite; }
.devpin--echoes { transform: translate(-10px, calc(-50% + var(--dy, 0px))); }
.devpin--echoes b { font: 500 17px/1 var(--serif); letter-spacing: .08em; background: var(--walnut); }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0), 0 0 30px rgba(255, 255, 255, .7); } }

/* round 9 fixes */
.atmo > .media { inset: 30% 0 0 0; }
.atmo::after { background: linear-gradient(to bottom, var(--paper) 0%, var(--paper) 30%, color-mix(in srgb, var(--paper) 70%, transparent) 38%, color-mix(in srgb, var(--paper) 20%, transparent) 50%, transparent 62%); }
@media (min-width: 1280px) { .atmo { min-height: 100vh; } .atmo > .media { inset: 32% 0 0 0; } }
@media (max-width: 767px) { .atmo { min-height: 150vw; } .atmo > .media { inset: 38% 0 0 0; } .atmo::after { background: linear-gradient(to bottom, var(--paper) 0%, var(--paper) 38%, color-mix(in srgb, var(--paper) 40%, transparent) 46%, transparent 58%); } }
.tl__item p b, .period__list b { font-variant-numeric: lining-nums tabular-nums; }
.tl__item p b { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.section--lg.has-leaves .leaves--tl { top: -2%; }

/* atmo v2: text on misty paper, image fades in below it */
.atmo { display: flex; flex-direction: column; align-items: stretch; min-height: 0; background: var(--paper); }
.atmo::after { content: none; }
.atmo__in { order: 1; padding-top: clamp(48px, 8vw, 96px); padding-bottom: 0; }
.atmo__media { order: 2; position: relative; margin-top: clamp(-120px, -9vw, -40px); aspect-ratio: 4 / 5; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%); mask-image: linear-gradient(to bottom, transparent 0%, #000 34%); }
.atmo__media > .media { position: absolute; inset: 0; background: transparent; }
.atmo > .media { inset: auto; }
@media (min-width: 768px) { .atmo__media { aspect-ratio: 16 / 9; } }
@media (min-width: 1280px) { .atmo__media { aspect-ratio: 21 / 9; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 42%); mask-image: linear-gradient(to bottom, transparent 0%, #000 42%); } }

@media (min-width: 768px) { .atmo__media .cover { --fy: .44 !important; } }
.water::before { height: 38%; background: linear-gradient(to bottom, var(--forest), rgba(22, 43, 27, .35) 60%, transparent); }
.water::after { height: 22%; background: linear-gradient(to top, var(--forest), transparent); }

@media (min-width: 768px) { .devmap { max-width: 980px; margin: 0 auto; } }

.hl__partner { display: inline-flex; align-items: center; gap: 14px; margin-top: 12px; padding: 10px 16px 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s, box-shadow .3s; }
.hl__partner:hover { border-color: var(--sage); box-shadow: 0 6px 20px rgba(22, 43, 27, .07); }
.hl__partner img { width: 92px; height: auto; flex: none; }
.hl__partner span { display: grid; gap: 2px; }
.hl__partner small { font: 500 10px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hl__partner b { font: 500 15px/1.2 var(--sans); color: var(--ink); }
.hl__partner .arr { transition: transform .3s var(--ease); display: inline-block; }
.hl__partner:hover .arr { transform: translateX(3px); }
@media (min-width: 768px) { .devmap { max-width: 860px; } }

.devmap-grid { display: grid; gap: 40px; }
@media (min-width: 1100px) { .devmap-grid { grid-template-columns: 5fr 6fr; gap: calc(var(--gutter) * 3); align-items: start; } .devmap { max-width: none; margin: 0; } }
.devmap-list { list-style: none; margin: 32px 0 0; padding: 0; columns: 2; column-gap: var(--gutter); }
.devmap-list li { break-inside: avoid; display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-light); color: var(--on-dark); font-size: 15px; }
.devmap-list i { width: 9px; height: 9px; border-radius: 50%; background: var(--sand); flex: none; }
.devmap-list .is-echoes { font: 500 18px/1 var(--serif); letter-spacing: .08em; }
.devmap-list .is-echoes i { background: #fff; width: 11px; height: 11px; }
.hl__partner img { width: 120px; }
@media (max-width: 767px) { .devmap-list { columns: 1; } }

@media (max-width: 767px) { .devmap__in { width: 160%; } }

/* round 11 */
@media (max-width: 767px) { .hero .leaves { display: none; } }
.hl__partner { text-decoration: none; }
.hl__partner img { width: 112px; height: auto; }

/* round 12 */
.return .leaves--tr { top: -18%; }
@media (max-width: 767px) {
  .return .leaves--tr { width: 50vw; top: -26%; right: -8%; }
  .dev-hero__text { text-align: center; }
  .dev-logo { margin-left: auto; margin-right: auto; }
  .dev-hero .lead { margin-left: auto; margin-right: auto; }
  .dev-hero .actions { justify-content: center; }
}

@media (max-width: 767px) { .return .leaves--tr { width: 40vw; top: -80px; right: -9%; } }

/* =================== round 14: aesthetics =================== */

/* ---------- unified rounded corners ---------- */
:root { --r: 10px; --r-sm: 8px; --r-img: 18px; }
@media (max-width: 767px) { :root { --r-img: 14px; } }

.media { border-radius: var(--r-img); }
/* full-bleed stages stay square */
.hero .media, .page-hero .media, .band .media, .atmo__media .media, .final__bg .media,
.echoes-band__bg .media, .water .media, .gp .media, .gp-panel .media, .tip .media,
.project > .media, .gallery .media, .lightbox .media { border-radius: 0; }

.project, .gallery__main, .plan, .minimap, .teaser__map, .devmap, .dev-hero__media,
.invest-box, .addr__card, .office__form, .split__media, .model__media { border-radius: var(--r-img); overflow: hidden; }
.dev-hero__media .media, .split__media .media, .model__media .media { border-radius: inherit; }
.thumbs button { border-radius: var(--r-sm); }
.tl__img, .tl__img .media { border-radius: var(--r-sm); }
.badge { border-radius: 999px; padding: 0 12px; }
.gallery__count, .gp__hint, .devpin b { border-radius: 999px; }
.gallery__count { padding: 4px 12px; }
.strip-nav button, .gallery__arrows button { border-radius: 50%; }
.gp__zoom { border-radius: var(--r); overflow: hidden; }
.tip { border-radius: var(--r); overflow: hidden; }
.view-switch { overflow: hidden; }
.plan { padding: 16px; }
.modal__panel { border-radius: 22px 22px 0 0; }
@media (min-width: 768px) { .modal__panel { border-radius: var(--r-img); } }
@media (max-width: 1099px) { .gp-panel { border-radius: 22px 22px 0 0; } }
@media (max-width: 767px) {
  .teaser__map, .devmap { border-radius: 0; }
}

/* ---------- paper grain on light surfaces ---------- */
body, .header, .section--paper, .return, .atmo, .page-head, .dev-hero, .toolbar,
.invest-box, .addr__card, .modal__panel, .gp-panel, .preloader, .sticky-bar {
  background-image: url("../brand/paper.webp");
  background-size: 180px 180px;
}
.header--over { background-image: none; }

/* ---------- preloader (first visit in a session) ---------- */
.preloader { position: fixed; inset: 0; z-index: 400; background-color: var(--linen); display: grid; place-items: center;
  transition: opacity .7s var(--ease), visibility 0s linear .7s;
  animation: preloader-safety .7s ease 3.2s forwards; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.intro-seen .preloader, html:not(.js) .preloader { display: none; }
.preloader__in { display: grid; justify-items: center; gap: 12px; }
.preloader__logo { width: clamp(170px, 30vw, 240px); color: var(--forest); opacity: 0; animation: pre-in 1s var(--ease) .05s forwards; }
.preloader__logo svg { width: 100%; height: auto; }
.preloader__descr { font: 500 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--walnut); opacity: 0; animation: pre-in 1s var(--ease) .25s forwards; }
.preloader__line { width: 120px; height: 1px; background: color-mix(in srgb, var(--forest) 18%, transparent); position: relative; overflow: hidden; margin-top: 6px; }
.preloader__line::after { content: ""; position: absolute; inset: 0; background: var(--forest); transform: scaleX(0); transform-origin: 0 50%; animation: pre-line 1.1s var(--ease) .1s forwards; }
@keyframes pre-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pre-line { to { transform: scaleX(1); } }
@keyframes preloader-safety { to { opacity: 0; visibility: hidden; } }

/* ---------- soft page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s ease both; }
::view-transition-new(root) { animation: vt-in .45s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
/* fallback for browsers without cross-document view transitions */
.no-vt body { animation: page-in .45s ease both; }
.no-vt.is-leaving body { opacity: 0; transition: opacity .28s ease; }
@keyframes page-in { from { opacity: 0; } }

/* ---------- nature sound button ---------- */
.sound-btn { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 85;
  display: inline-flex; align-items: center; gap: 0; height: 48px; min-width: 48px; padding: 0 15px; border-radius: 999px;
  background: rgba(22, 43, 27, .82); color: var(--linen); box-shadow: 0 6px 22px rgba(10, 20, 13, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .25s, gap .35s var(--ease), padding .35s var(--ease); }
.sound-btn:hover { background: var(--forest); }
.sound-btn__ico { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 16px; width: 18px; }
.sound-btn__ico i { display: block; width: 2.5px; height: 30%; border-radius: 2px; background: currentColor; transition: height .3s; }
.sound-btn__ico i:nth-child(2) { height: 55%; }
.sound-btn__ico i:nth-child(3) { height: 40%; }
.sound-btn__ico i:nth-child(4) { height: 22%; }
.sound-btn.is-on .sound-btn__ico i { animation: eq 1.1s ease-in-out infinite alternate; }
.sound-btn.is-on .sound-btn__ico i:nth-child(2) { animation-duration: .8s; }
.sound-btn.is-on .sound-btn__ico i:nth-child(3) { animation-duration: 1.35s; }
.sound-btn.is-on .sound-btn__ico i:nth-child(4) { animation-duration: .95s; }
.sound-btn:not(.is-on) .sound-btn__ico { opacity: .75; }
.sound-btn.is-armed { box-shadow: 0 0 0 2px var(--sand), 0 6px 22px rgba(10, 20, 13, .18); }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.sound-btn__label { max-width: 0; overflow: hidden; white-space: nowrap; font: 500 14px/1 var(--sans); opacity: 0; transition: max-width .45s var(--ease), opacity .3s; }
.sound-btn:focus-visible .sound-btn__label, .sound-btn.is-hint .sound-btn__label { max-width: 160px; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .sound-btn:hover:not(.is-quiet) .sound-btn__label { max-width: 160px; opacity: 1; } .sound-btn:hover:not(.is-quiet) { gap: 10px; padding: 0 18px 0 15px; } }
.sound-btn:focus-visible, .sound-btn.is-hint { gap: 10px; padding: 0 18px 0 15px; }
body:has(.sticky-bar.is-visible) .sound-btn { bottom: calc(80px + env(safe-area-inset-bottom)); }
body:has(.modal.is-open) .sound-btn, body:has(.menu.is-open) .sound-btn { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sound-btn.is-on .sound-btn__ico i { animation: none; } }

.house-layout > *, .two-col > *, .model > *, .teaser > *, .income > *, .reasons > *, .devmap-grid > * { min-width: 0; }

/* =================== round 15: hero parallax + video =================== */
.hero__media { will-change: transform; transform-origin: 50% 0; }
.hero__media > .media { transform-origin: 50% 60%; }
.hero.is-opening .hero__media > .media { animation: hero-open 2.8s cubic-bezier(.16, .8, .24, 1) both; }
.intro-seen .hero.is-opening .hero__media > .media { animation-duration: 2s; }
html:not(.intro-seen) .hero.is-opening .hero__media > .media { animation-delay: .9s; }
@keyframes hero-open { from { transform: scale(1.14); } to { transform: none; } }
.hero__content { will-change: transform, opacity; }
.hero__video-wrap { position: absolute; inset: 0; background: var(--forest); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sound-btn.is-loading .sound-btn__ico i { animation: eq .5s ease-in-out infinite alternate; opacity: .6; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } .hero__video-wrap { background-size: cover; } }

/* mobile: developer map must stay swipeable (rounded-corner rule above sets overflow: hidden) */
@media (max-width: 767px) { .devmap { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; } }

/* hero video: fills the frame like the still render */
.hero__video-wrap { border-radius: 0; }

/* mobile: keep hero buttons clear of the floating sound button */
@media (max-width: 767px) { .hero__content { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* =================== «Відчуйте ECHOES» page =================== */
.atm-head { padding-bottom: 8px; }
.atm-head__in { display: grid; gap: 16px; align-items: end; }
.atm-head__aside { display: none; font: 500 11px/1.6 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--sage); max-width: 14em; border-bottom: 1px solid var(--line); padding-bottom: 14px; justify-self: end; }
@media (min-width: 1100px) { .atm-head__in { grid-template-columns: 1fr auto; } .atm-head__aside { display: block; } }
.atm-grid-sec { padding-top: 24px; }

.atm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.atm-tile { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; overflow: hidden; border-radius: var(--r-img); aspect-ratio: 3 / 4; background: var(--forest); color: #fff; text-align: left; -webkit-tap-highlight-color: transparent; }
.atm-tile--1 { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.atm-tile > .media { position: absolute; inset: 0; border-radius: 0; }
.atm-tile::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(10, 20, 13, .72) 0%, rgba(10, 20, 13, .15) 45%, rgba(10, 20, 13, 0) 70%); }
.atm-tile .cover__in { transition: transform 1.2s var(--ease); }
.atm-tile:hover .cover__in, .atm-tile:focus-visible .cover__in { transform: scale(1.04); }
.atm-tile:active .cover__in { transform: scale(1.02); }
.atm-tile__play { position: absolute; z-index: 3; left: 50%; top: 42%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .75); display: grid; place-items: center; background: rgba(10, 20, 13, .18); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: transform .4s var(--ease), background .3s; }
.atm-tile__play svg { margin-left: 3px; }
.atm-tile:hover .atm-tile__play { transform: scale(1.08); background: rgba(10, 20, 13, .35); }
.atm-tile__play::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); animation: tile-pulse 2.8s ease-out infinite; }
@keyframes tile-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.atm-tile__cap { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 6px; }
.atm-tile__cap b { font: 500 clamp(26px, 6.5vw, 40px)/1 var(--serif); text-shadow: 0 1px 14px rgba(8, 16, 10, .35); }
.atm-tile__cap small { font: 500 9.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }
@media (min-width: 768px) {
  .atm-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .atm-tile, .atm-tile--1 { aspect-ratio: 5 / 4; grid-column: span 2; }
  .atm-tile--4, .atm-tile--5 { grid-column: span 3; aspect-ratio: 16 / 9; }
  .atm-tile__cap { left: 22px; bottom: 20px; }
  .atm-tile__cap small { font-size: 10.5px; }
}

/* ---------- full-screen scenes ---------- */
.scenes { position: fixed; inset: 0; z-index: 160; pointer-events: none; }
.scenes.is-open { pointer-events: auto; }
.scene-open, .scene-open body { overflow: hidden; }
.scene-open .sound-btn, .scene-open .float-cta { opacity: 0; pointer-events: none; }
.scene { position: absolute; inset: 0; background: #0b1510; color: #fff; overflow: hidden; opacity: 0; transition: opacity .45s ease, transform .55s var(--ease); }
.scene.is-active { opacity: 1; transform: none; }
.scene.is-entering-right { transform: translateX(8%); }
.scene.is-entering-left { transform: translateX(-8%); }
.scene.is-leaving-left { opacity: 0; transform: translateX(-8%); }
.scene.is-leaving-right { opacity: 0; transform: translateX(8%); }
.scene[hidden] { display: none !important; }

.scene__stage { position: absolute; inset: 0; transition: filter .48s ease; }
.scene__layer { position: absolute; inset: 0; transition: opacity 1.8s ease; }
.scene__layer > .media { position: absolute; inset: 0; border-radius: 0; background: transparent; }
.scene__layer--night { opacity: 0; }
.scene.is-night .scene__layer--night { opacity: 1; }
.scene.is-night .scene__layer--day { opacity: 0; }
.scene:not(.scene--aligned) .scene__layer { transition: none; }
.scene.is-switching .scene__stage { filter: blur(18px) brightness(.45); }
.scene.is-active .scene__stage .cover__in { animation: scene-drift 16s ease-in-out infinite alternate; }
@keyframes scene-drift { from { transform: scale(1.02); } to { transform: scale(1.08) translate(-1%, -.5%); } }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(to top, rgba(8, 14, 10, .82) 0%, rgba(8, 14, 10, .35) 32%, rgba(8, 14, 10, 0) 55%), linear-gradient(to bottom, rgba(8, 14, 10, .55), rgba(8, 14, 10, 0) 22%); }

.scene__top { position: absolute; z-index: 4; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 16px 0; }
.scene__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 999px; color: #fff; font: 500 14px/1 var(--sans); background: rgba(10, 20, 13, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.scene__count { margin-left: auto; font: 500 13px/1 var(--sans); letter-spacing: .08em; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.scene__daynight { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 999px; background: rgba(10, 20, 13, .32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.scene__daynight + .scene__count { margin-left: 4px; }
.scene__daynight button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; color: rgba(255, 255, 255, .8); font: 500 13px/1 var(--sans); transition: background .3s, color .3s; }
.scene__daynight button[aria-pressed="true"] { background: rgba(236, 231, 223, .95); color: var(--forest); }

.scene__bottom { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 20px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 18px; }
.scene__title { font: 500 clamp(56px, 15vw, 120px)/.95 var(--serif); color: #fff; display: flex; align-items: center; gap: 22px; text-shadow: 0 2px 24px rgba(8, 16, 10, .35); }
.scene__title::after { content: ""; flex: 0 0 clamp(40px, 10vw, 120px); height: 1px; background: rgba(255, 255, 255, .7); transform-origin: left; }
.scene__line { font: 400 clamp(22px, 5.6vw, 34px)/1.2 var(--serif); color: rgba(255, 255, 255, .95); margin-top: 10px; max-width: 16em; }
.scene__actions { margin-top: 18px; }
.scene__sound { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #fff; font: 500 14px/1 var(--sans); }
.scene__sound .sound-btn__ico { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); display: inline-flex; align-items: flex-end; justify-content: center; gap: 2.5px; padding: 14px 0; }
.scene__sound .sound-btn__ico i { display: block; width: 2.5px; height: 30%; border-radius: 2px; background: currentColor; }
.scene__sound.is-on .sound-btn__ico i { animation: eq 1.1s ease-in-out infinite alternate; }
.scene__sound.is-on .sound-btn__ico i:nth-child(2) { animation-duration: .8s; }
.scene__sound.is-on .sound-btn__ico i:nth-child(3) { animation-duration: 1.35s; }
.scene__sound.is-on .sound-btn__ico i:nth-child(4) { animation-duration: .95s; }
.scene__side { display: grid; gap: 14px; }
.scene__side p { font-size: 15px; line-height: 23px; color: rgba(255, 255, 255, .88); max-width: 22em; }
.scene__cta { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--linen); color: var(--forest); font: 500 15px/1 var(--sans); }
.scene__cta:hover { background: #fff; }
.scene__nav { display: none; }
@media (min-width: 1100px) {
  .scene__top { padding: 26px 40px 0; }
  .scene__bottom { grid-template-columns: 1fr auto; align-items: end; padding: 0 48px 44px; }
  .scene__side { justify-items: end; text-align: right; }
  .scene__side p { max-width: 18em; }
  .scene__cta { justify-self: end; }
  .scene__nav { display: grid; place-items: center; position: absolute; z-index: 4; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; color: #fff; font-size: 20px; background: rgba(10, 20, 13, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .scene__nav--prev { left: 28px; }
  .scene__nav--next { right: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene__layer, .scene__stage { transition: none; }
  .scene.is-active .scene__stage .cover__in, .atm-tile__play::after { animation: none; }
}

/* ---------- light rings on water (no distortion of the picture) ---------- */
.amb-rings span { position: absolute; left: var(--x); top: var(--y); width: 11%; aspect-ratio: 3.2; margin: -1.7% 0 0 -5.5%; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); opacity: 0; transform: scale(.1); animation: water-ring 5.1s ease-out var(--d) infinite; mix-blend-mode: soft-light; }
.amb-rings span::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); }
@keyframes water-ring { 0% { opacity: 0; transform: scale(.1); } 8% { opacity: .9; } 60% { opacity: .35; } 100% { opacity: 0; transform: scale(1.5); } }

/* =================== round 18: відео-сцени, вечірній формат, мапа у шапці забудовника =================== */

/* ---------- 6 tiles on «Відчуйте ECHOES» ---------- */
@media (min-width: 768px) {
  .atm-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .atm-tile, .atm-tile--1 { grid-column: span 2; aspect-ratio: 4 / 5; }
  .atm-tile--4, .atm-tile--5 { grid-column: span 3; aspect-ratio: 4 / 3; }
}

/* ---------- scene stage: portrait clip, blurred backdrop on wide screens ---------- */
.scene__blur { display: none; }
.scene__frame { position: absolute; inset: 0; }
.scene__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.scene__video.is-playing { opacity: 1; }
@media (min-aspect-ratio: 1 / 1) and (min-width: 900px) {
  .scene__blur { display: block; position: absolute; inset: -8%; background-size: cover; background-position: center; filter: blur(36px) brightness(.5) saturate(.85); }
  .scene__frame { inset: 0 auto 0 50%; height: 100%; width: auto; aspect-ratio: .558; transform: translateX(-50%); overflow: hidden; }
  .scene--video .scene__frame { box-shadow: 0 30px 90px rgba(0, 0, 0, .45); }
}

/* ---------- evening band on the home page ---------- */
.ev-card { display: grid; gap: 14px; }
.ev-card figcaption { display: grid; gap: 4px; }
.ev-card figcaption b { font: 500 20px/1.25 var(--serif); color: var(--on-dark); }
.ev-card figcaption span { font-size: 15px; line-height: 22px; color: var(--on-dark-muted); }

/* ---------- developer hero: the map is the hook ---------- */
.dev-hero__maptitle { font: 500 11px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.dev-hero__note { color: var(--muted); font-size: 15px; line-height: 23px; margin-top: 14px; max-width: 26em; }
.dev-hero .devmap-list { margin-top: 28px; columns: 2; }
.dev-hero .devmap-list li { color: var(--ink); border-top-color: var(--line); }
.dev-hero .devmap-list i { background: var(--sage); }
.dev-hero .devmap-list .is-echoes { color: var(--forest); }
.dev-hero .devmap-list .is-echoes i { background: var(--forest); }
@media (min-width: 768px) { .dev-hero .devmap-list { columns: 3; } }
@media (min-width: 1100px) { .dev-hero .devmap-list { columns: 5; } .dev-hero__grid { align-items: start; } }

/* ---------- furnished plan above the dimensioned drawing ---------- */
.plan3d { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.plan3d img { display: block; width: 100%; height: auto; }
.plan__cap { font: 500 11px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.plan3d .plan__cap { margin: 12px 0 2px; }
@media (min-width: 1100px) {
  .dev-hero .devmap { display: block; }
  .dev-hero .devmap__in { width: 100%; }
  .dev-hero .devmap img { width: 100%; height: auto; }
  .dev-hero__map { display: block; }
}

@media (min-width: 1100px) { .dev-hero .devpin b { font-size: 11px; padding: 4px 7px; } .dev-hero .devpin--echoes b { font-size: 15px; } .dev-hero .devpin i { width: 11px; height: 11px; } }

/* the still under the hero video: shown until the clip paints (and always with reduced motion) */
.hero__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* ---------- day timeline: periods light up while scrolling ---------- */
.tl__period .tl__ico, .tl__period b { transition: transform .55s var(--ease), background-color .55s ease, color .55s ease, box-shadow .55s ease, opacity .55s ease; }
.tl__period .tl__ico { transform-origin: center; }
.motion .tl__period:not(.is-lit) .tl__ico, .motion .tl__period:not(.is-lit) b { opacity: .45; }
.tl__period.is-lit .tl__ico { background: rgba(201, 180, 154, .16); }
.tl__period.is-active .tl__ico { transform: scale(1.35); background: var(--sand); color: var(--forest); border-color: transparent; box-shadow: 0 0 0 6px rgba(201, 180, 154, .12), 0 0 26px rgba(201, 180, 154, .45); }
.tl__period.is-active b { transform: translateX(6px); color: #fff; }
.motion .tl__period.is-active .tl__ico::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--sand); animation: tl-pulse 2.6s ease-out infinite; }
@keyframes tl-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tl__period .tl__ico, .tl__period b { opacity: 1 !important; transform: none !important; } }

/* the growing line is only for the scripted, motion-friendly view */
.tl::after { display: none; }
.motion .tl::after { display: block; }
@media (prefers-reduced-motion: reduce) { .tl::after { display: none !important; } }

/* ---------- moments of the day light up as the line reaches them ---------- */
.tl__item .tl__img, .tl__item p, .tl__item::before { transition: transform .5s var(--ease), opacity .5s ease, box-shadow .5s ease, background-color .4s ease, filter .5s ease; }
.motion .tl__item:not(.is-lit) .tl__img { opacity: .5; filter: saturate(.72); transform: scale(.965); }
.motion .tl__item:not(.is-lit) p { opacity: .48; }
.motion .tl__item:not(.is-lit)::before { background: var(--line-light); transform: scale(.7); }
.motion .tl__item.is-lit .tl__img { opacity: 1; transform: scale(1); box-shadow: 0 10px 26px rgba(6, 14, 9, .38); }
.motion .tl__item.is-active .tl__img { transform: scale(1.045); box-shadow: 0 14px 34px rgba(6, 14, 9, .45); }
.motion .tl__item.is-active::before { box-shadow: 0 0 0 4px var(--forest), 0 0 16px rgba(201, 180, 154, .7); transform: scale(1.15); }
.motion .tl__item.is-active p b { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .tl__item .tl__img, .tl__item p, .tl__item::before { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- desktop: walk through the day along the strip ---------- */
.strip-rail { display: none; }
@media (min-width: 768px) {
  .motion .strip-rail { display: block; position: relative; height: 2px; margin-top: 32px; background: var(--line-light); border-radius: 2px; }
  .strip-rail__fill { position: absolute; left: 0; top: -1px; height: 4px; width: var(--rail-fill, 0%); border-radius: 2px;
    background: linear-gradient(to right, rgba(201, 180, 154, .45), var(--sand)); box-shadow: 0 0 16px rgba(201, 180, 154, .45); transition: width .3s ease-out; }
  .strip-rail i { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--forest); border: 1px solid var(--line-light);
    transition: background-color .45s ease, box-shadow .45s ease, transform .45s var(--ease); }
  .strip-rail i.is-lit { background: var(--sand); border-color: transparent; transform: scale(1.1); box-shadow: 0 0 0 4px rgba(201, 180, 154, .12), 0 0 16px rgba(201, 180, 154, .5); }

  .motion .strip--periods .period { transition: opacity .55s ease, transform .55s var(--ease), filter .55s ease; }
  .motion .strip--periods .period:not(.is-lit) { opacity: .45; filter: saturate(.7); transform: scale(.985); }
  .motion .strip--periods .period.is-active { transform: translateY(-4px); }
  .motion .strip--periods .period.is-active .media { box-shadow: 0 18px 44px rgba(6, 14, 9, .45); }
  .period__ico { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; flex: none;
    transition: background-color .45s ease, color .45s ease, transform .45s var(--ease), box-shadow .45s ease; }
  .motion .strip--periods .period.is-active .period__ico { background: var(--sand); color: var(--forest); border-color: transparent; transform: scale(1.12);
    box-shadow: 0 0 0 6px rgba(201, 180, 154, .12), 0 0 24px rgba(201, 180, 154, .45); }
}
@media (prefers-reduced-motion: reduce) { .strip-rail { display: none !important; } .strip--periods .period { opacity: 1 !important; transform: none !important; filter: none !important; } }

/* the wider map needs less over-scroll on phones (still draggable) */
@media (max-width: 767px) { .devmap__in { width: 118%; } }

/* OSM credit: a small chip pinned to the map frame (the map itself can still be dragged on phones) */
.dev-hero__map { position: relative; }
.devmap__credit { position: absolute; left: 12px; bottom: 9px; z-index: 2; pointer-events: none;
  font: 500 10px/1 var(--sans); letter-spacing: .04em; color: rgba(236, 231, 223, .72);
  background: rgba(16, 35, 26, .5); padding: 5px 9px; border-radius: 999px; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* ---------- footer: the complex and the sales office read as two separate blocks ---------- */
.footer__places { display: grid; gap: 22px; margin-top: 28px; }
.footer__place small { display: block; margin-bottom: 7px; font: 500 10px/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sand); }
.footer__place p { margin: 0; max-width: 30em; }
.footer__place + .footer__place { padding-top: 22px; border-top: 1px solid var(--line-light); }
.footer__ig { margin-top: 24px; }

/* ---------- house gallery: swipe hint on phones ---------- */
.gallery__hint { display: none; }
@media (max-width: 767px) {
  .gallery__hint { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); transition: opacity .4s ease; }
  .gallery__hint .arr { display: inline-block; animation: hint-slide 1.8s ease-in-out infinite; }
  .gallery__hint.is-gone { opacity: 0; }
}
@keyframes hint-slide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .gallery__hint .arr { animation: none; } }

/* ---------- evening band: six cards ---------- */
@media (min-width: 768px) {
  .evening .strip--4 { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; row-gap: 36px; }
}

/* ---------- partner plate: transparent, so it does not shout on the page ---------- */
.hl__partner { background: transparent; border-color: transparent; padding-left: 0; padding-right: 12px; }
.hl__partner:hover { background: rgba(255, 255, 255, .5); border-color: var(--line); box-shadow: none; }

/* ---------- developer page: less air between the experience list and the portfolio on phones ---------- */
@media (max-width: 767px) {
  .dev-hl { padding-bottom: 40px; }
  .dev-projects { padding-top: 36px; }
}

/* ---------- footer: messengers and Instagram read as buttons ---------- */
.footer__chips { margin-top: 16px; }
.footer__chips .footer__messengers { display: contents; }
.footer .chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; margin: 0 8px 8px 0;
  border: 1px solid var(--line-light); border-radius: 999px; color: var(--on-dark); font: 500 14px/1 var(--sans);
  transition: background-color .3s ease, border-color .3s ease, transform .3s var(--ease); }
.footer .chip:hover { background: rgba(236, 231, 223, .12); border-color: var(--sand); transform: translateY(-1px); }
.footer .chip svg { color: var(--sand); }
.footer__chips { display: flex; flex-wrap: wrap; }

.footer__map { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--sand); font: 500 14px/1 var(--sans); }
.footer__map:hover { color: var(--on-dark); }
