/* Layout: a sales brochure for buildings. Deep green "cover" sections frame light limestone sections; gold is the only accent, as on the Ergo Green banner. Three levels: projects → project (apartments) → apartment (plan). */
:root {
  --green: #1E2E2D;
  --green-2: #263A39;
  --green-deep: #162221;
  --gold: #B98A4B;
  --gold-light: #D4B07A;
  --gold-ink: #86602D;
  --stone: #EDEFEA;
  --paper: #F8F9F6;
  --ink: #1E2E2D;
  --ink-soft: #4A5A58;
  --on-dark: #F1EEE7;
  --on-dark-soft: #B7C1BD;
  --line-light: rgba(30, 46, 45, .14);
  --line-dark: rgba(241, 238, 231, .16);

  /* Availability */
  --st-available: #2E7D4F;
  --st-reserved: #B98A4B;
  --st-sold: #8E9894;

  /* Energy label (ΠΕΑ) scale */
  --e1: #00843D; --e2: #2BA23B; --e3: #8CBF3F; --e4: #C8D400; --e5: #FFE600; --e6: #F7B500; --e7: #EE7203; --e8: #E2231A; --e9: #B5121B;

  --f-display: "Noto Serif Display", "GFS Didot", Georgia, "Times New Roman", serif;
  --f-body: "Commissioner", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s-1: .8125rem;
  --s0: 1rem;
  --s1: 1.125rem;
  --s2: 1.375rem;
  --s3: clamp(1.65rem, 1.25rem + 1.6vw, 2.4rem);
  --s4: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);
  --s5: clamp(2.6rem, 1.5rem + 4.2vw, 4.4rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* One screen = viewport minus sticky header (and the mobile call bar). site.js measures
     --head, --foot and --callbar; these are the fallbacks until it runs. */
  --vh: 100vh;
  --head: 4.45rem;
  --foot: 7.1rem;
  --callbar: 0px;
  --screen: calc(var(--vh) - var(--head) - var(--callbar));
  --pad: clamp(2.75rem, 7vh, 5.5rem);
  color-scheme: light;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }
:root:has(.crumbs) { --head: 7.25rem; }
@media (max-width: 40rem) { :root { --callbar: 3.6rem; --foot: 15rem; } }

* { box-sizing: border-box; }
html { scroll-padding-top: var(--head); }
/* Smooth scrolling only once the page has loaded: a link to #anchor from another page then lands instantly and exactly */
html.is-ready { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.is-ready { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--s0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

/* Scrollbar in the brand colours: a 3px gold line on the deep green of the header (user's request 2026-10-10;
   Firefox has no width below "thin") */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 3px; height: 3px; }
  ::-webkit-scrollbar-track { background: var(--green-deep); }
  ::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 0; }
  ::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }
  ::-webkit-scrollbar-thumb:active { background: var(--gold-light); }
  ::-webkit-scrollbar-corner { background: var(--green-deep); }
}
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--gold) var(--green-deep); scrollbar-width: thin; }
}
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow { font-size: var(--s-1); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.eyebrow-ink { color: var(--gold-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.4rem;
  font: 600 var(--s0)/1.2 var(--f-body); letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn-gold { background: var(--gold); color: var(--green); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: var(--line-dark); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: .9375rem; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--green); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(10, 18, 17, .28); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand img { width: 3rem; height: 3rem; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; letter-spacing: .14em; font-size: var(--s0); }
.brand-sub { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-soft); }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .9375rem; color: var(--on-dark-soft); transition: color .2s; padding-block: .25rem; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--gold-light); }
.nav a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--gold); }
/* Language picker ΕΛ | EN (no gap: Safari 13) */
.lang { display: flex; align-items: center; flex: none; margin-left: auto; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; }
.lang a { text-decoration: none; color: var(--on-dark-soft); padding: .55rem .6rem; border-bottom: 1px solid transparent; transition: color .2s; }
.lang a:hover { color: var(--gold-light); }
.lang a[aria-current="true"] { color: var(--on-dark); border-bottom-color: var(--gold); }
.lang-sep { color: var(--line-dark); }
@media (max-width: 52rem) { .nav { display: none; } }
@media (max-width: 26rem) { .bar .btn-sm { display: none; } }

/* Shared text bits */
.rule { display: flex; align-items: center; gap: .75rem; color: var(--gold); max-width: 26rem; }
.rule::before, .rule::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: .7; }
.rule svg { width: 1.6rem; height: 1rem; }
.lede { font-size: var(--s1); color: var(--on-dark-soft); max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
figcaption { margin-top: .6rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); }

/* Video opening (home) */
.vhero { position: relative; isolation: isolate; overflow: hidden; background: var(--green-deep); color: var(--on-dark); min-height: max(26rem, var(--screen)); display: grid; align-items: end; }
.vhero-video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vhero-shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(22, 34, 33, .78) 0%, rgba(22, 34, 33, .35) 45%, rgba(22, 34, 33, 0) 75%),
    linear-gradient(180deg, rgba(30, 46, 45, .45) 0%, rgba(30, 46, 45, 0) 30%, rgba(30, 46, 45, .2) 62%, var(--green) 100%); }
.vhero-inner { width: 100%; display: grid; justify-items: start; gap: 1rem; padding-block: clamp(5rem, 14vh, 9rem) clamp(4.5rem, 10vh, 6.5rem); }
.vhero-logo { width: clamp(3.75rem, 3rem + 2.5vw, 5.25rem); height: auto; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 10px 30px rgba(0, 0, 0, .35); }
.vhero-title { display: grid; gap: .55rem; margin: 0; line-height: 1; }
.vhero-name { font-family: var(--f-display); font-weight: 500; font-size: clamp(3rem, 1.6rem + 6.4vw, 7.25rem); letter-spacing: .06em; color: var(--gold); text-shadow: 0 2px 24px rgba(0, 0, 0, .35); animation: vh-track 2.2s cubic-bezier(.2, .7, .1, 1) both; }
.vhero-sub { display: flex; align-items: center; gap: .9rem; font-family: var(--f-body); font-weight: 500; font-size: clamp(.85rem, .7rem + .7vw, 1.25rem); letter-spacing: .62em; text-transform: uppercase; color: var(--on-dark); }
.vhero-sub::before { content: ""; width: clamp(2rem, 1rem + 4vw, 4.5rem); height: 1px; background: var(--gold); transform-origin: left; animation: vh-rule 1.6s .4s cubic-bezier(.2, .7, .1, 1) both; }
.vhero-place { font-size: var(--s-1); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); }
@keyframes vh-track { from { letter-spacing: .22em; } to { letter-spacing: .06em; } }
@keyframes vh-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.vhero-next { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); display: grid; justify-items: center; gap: .15rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); text-decoration: none; }
.vhero-next svg { width: 1.4rem; height: 1.4rem; color: var(--gold); animation: vh-bob 2.4s ease-in-out infinite; }
.vhero-next:hover { color: var(--on-dark); }
@keyframes vh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.vhero-toggle { position: absolute; right: var(--gutter); bottom: 1.1rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(22, 34, 33, .55); color: var(--on-dark); cursor: pointer; }
.vhero-toggle:hover { border-color: var(--gold); color: var(--gold-light); }
.vhero-toggle svg { width: 1.05rem; height: 1.05rem; }
.vhero-toggle .i-play, .vhero-toggle.is-paused .i-pause { display: none; }
.vhero-toggle.is-paused .i-play { display: block; }
@media (prefers-reduced-motion: reduce) { .vhero-name, .vhero-sub::before, .vhero-next svg { animation: none; } }
@media (max-width: 40rem) {
  .vhero-sub { letter-spacing: .42em; }
  .vhero-next span { display: none; }
  .vhero-shade { background:
    linear-gradient(180deg, rgba(30, 46, 45, .5) 0%, rgba(30, 46, 45, .15) 35%, rgba(30, 46, 45, .45) 70%, var(--green) 100%); }
}

/* Inner page hero (projects, project, apartment) */
.page-hero { background: var(--green); color: var(--on-dark); }
.page-hero .wrap, .intro-copy { display: grid; gap: 1.1rem; }
.page-hero .wrap { padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-family: var(--f-display); font-weight: 500; font-size: var(--s4); line-height: 1.1; }
/* Breadcrumb: second row of the sticky header on inner pages */
.crumbs { background: var(--green-deep); border-top: 1px solid var(--line-dark); }
.crumbs ol { display: flex; align-items: center; gap: .6rem; min-height: 2.6rem; padding-block: .5rem; font-size: .8125rem; letter-spacing: .03em; color: var(--on-dark-soft); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.crumbs ol::-webkit-scrollbar { display: none; }
.crumbs li { display: flex; gap: .6rem; align-items: center; flex: none; }
.crumbs li:last-child { flex: 0 1 auto; min-width: 0; }
.crumbs li + li::before { content: ""; width: .32rem; height: .32rem; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: rotate(45deg); flex: none; }
.crumbs a { text-decoration: none; padding-block: .2rem; transition: color .2s; }
.crumbs a:hover { color: var(--gold-light); }
.crumbs [aria-current] { color: var(--gold-light); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.facts-row { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin-top: .25rem; }
.facts-row div { display: grid; }
.facts-row dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-soft); }
.facts-row dd { font-weight: 600; font-size: var(--s1); }


/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section h2 { font-family: var(--f-display); font-weight: 500; font-size: var(--s4); line-height: 1.12; }
.section-head { display: grid; gap: 1rem; max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: var(--s1); }
.dark { background: var(--green); color: var(--on-dark); }
.dark .section-head p:not(.eyebrow) { color: var(--on-dark-soft); }

/* Example-data notice */
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 1px dashed var(--gold-ink); background: var(--paper); color: var(--ink); font-size: .9375rem; max-width: 46rem; }
.notice strong { color: var(--gold-ink); }
.notice svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .15rem; color: var(--gold-ink); }

/* Project cards (level 1) */
/* Every project is visible, none behind a scroll (user's request 2026-10-11): side by side, stacked on a phone */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 40rem) { .projects { grid-template-columns: minmax(0, 1fr); } }
.project-card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line-light); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; min-width: 0; }
.project-card:hover { border-color: var(--gold); }
.pc-pic { position: relative; min-height: 0; overflow: hidden; }
.project-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
/* Safari 13 has no aspect-ratio: the picture box gets its shape from padding, so the pictures of cards side by side are equally tall */
@supports not (aspect-ratio: 1 / 1) {
  .projects:not(.single) .pc-pic { height: 0; padding-bottom: 66.667%; }
  .projects:not(.single) .project-card img { position: absolute; top: 0; left: 0; height: 100%; }
}
.pc-body { display: grid; gap: .8rem; padding: 1.5rem; align-content: start; }
.pc-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: baseline; }
.pc-loc { font-size: var(--s-1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.pc-name { font-family: var(--f-display); font-weight: 500; font-size: var(--s3); line-height: 1.15; }
.pc-text { color: var(--ink-soft); }
.pc-cta { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); padding-top: .9rem; border-top: 1px solid var(--line-light); }
.pc-cta span { color: var(--gold-ink); transition: transform .2s; }
.project-card:hover .pc-cta span { transform: translateX(4px); }
/* A single project gets a wide card instead of a lonely column */
.projects.single { grid-template-columns: minmax(0, 1fr); }
.projects.single .project-card { grid-template-rows: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.projects.single .pc-pic, .projects.single .project-card img { height: 100%; }
.projects.single .project-card img { aspect-ratio: 687 / 516; }
.projects.single .pc-body { padding: clamp(1.5rem, 3.5vw, 2.75rem); align-content: center; }
/* Cards always on their own light paper, also inside a dark page head */
.page-hero .project-card .status.available { color: var(--st-available); }
.page-hero .project-card .status.reserved { color: var(--gold-ink); }

/* A finished, sold project: shown, not a link */
.project-card.is-sold:hover { border-color: var(--line-light); }
.is-sold img { filter: saturate(.7) brightness(.95); }
.pc-tag { position: absolute; left: 1rem; top: 1rem; padding: .45rem .8rem; background: var(--green); color: var(--gold-light); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.pc-cta-note { color: var(--ink-soft); font-weight: 500; }
/* Cards side by side share one row and are equally tall: the call to action sits at the foot of each
   (margins, not a flex gap: Safari 13 has none) */
.projects:not(.single) .pc-body { display: flex; flex-direction: column; }
.projects:not(.single) .pc-body > * + * { margin-top: .8rem; }
.projects:not(.single) .pc-body > :nth-last-child(2) { margin-bottom: .8rem; }
.projects:not(.single) .pc-body > .pc-cta { margin-top: auto; }
/* Item 7: title vertically centred (left-aligned) in a two-line row so descriptions start at the same y; the bedrooms line is pinned
   to the bottom, the link follows it */
.projects:not(.single) .pc-body > .pc-types { margin-top: auto; margin-bottom: 0; }
.projects:not(.single) .pc-body > .pc-types + .pc-cta { margin-top: .8rem; }
@media (min-width: 40.01rem) {
  .projects:not(.single) .pc-name { display: flex; align-items: center; min-height: 2.3em; }
}

/* Home: projects on warm cream, a little gold light from the top right */
.home-projects {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(212, 176, 122, .2), transparent 70%),
    linear-gradient(180deg, #F5F0E6, #EFE8DA);
}
.home-projects .project-card { background: #FCFAF5; border-color: rgba(134, 96, 45, .18); }
.home-projects .project-card:not(.is-sold):hover { border-color: var(--gold); }

@media (max-width: 48rem) {
  .projects.single .project-card { grid-template-columns: minmax(0, 1fr); }
  .projects.single .project-card img { height: auto; }
}

.status { display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.status.available { color: var(--st-available); }
.status.reserved { color: var(--gold-ink); }
.status.sold { color: var(--st-sold); }
.dark .status.available, .page-hero .status.available { color: #7FD3A0; }
.dark .status.reserved, .page-hero .status.reserved { color: var(--gold-light); }
.dark .status.sold, .page-hero .status.sold { color: var(--on-dark-soft); }

/* Gallery (level 2) */
.gallery { display: flex; gap: .75rem; }
.gallery figure { flex: var(--ar) 1 0; min-width: 0; }
.gallery img { width: 100%; }
/* every picture opens the plan lightbox (site.js); the link only wraps it */
a.zoom { cursor: zoom-in; }
.gallery figure > a.zoom, .tall-fig > a.zoom, .wide-fig > a.zoom, .fp-canvas > a.zoom { display: block; }
.fp-canvas > a.zoom { height: 100%; }
@media (max-width: 40rem) {
  .gallery { flex-direction: column; }
  .gallery .tall img { aspect-ratio: 4 / 5; object-fit: cover; }
}

/* Availability stack (level 2) */
.availability { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.stack { display: grid; gap: 4px; }
.stack-roof { height: 6px; background: var(--green); margin-left: 6.25rem; }
.floor { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .75rem; align-items: center; }
.floor-label { font-size: .8125rem; color: var(--ink-soft); text-align: right; line-height: 1.2; }
.floor-units { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.cell { display: grid; place-content: center; text-align: center; min-height: 3.5rem; padding: .3rem; text-decoration: none; font-weight: 700; line-height: 1.15; border: 1px solid transparent; transition: transform .15s, box-shadow .15s; }
.cell small { display: block; font-weight: 500; font-size: .75rem; }
.cell.available { background: var(--st-available); color: #fff; }
.cell.reserved { background: var(--st-reserved); color: var(--green); }
.cell.sold { background: transparent; color: var(--st-sold); border: 1px dashed var(--st-sold); }
.cell.ground { background: var(--paper); color: var(--ink-soft); font-weight: 500; font-size: .8125rem; border: 1px solid var(--line-light); }
a.cell:hover { box-shadow: 0 0 0 2px var(--gold); }
.cell.dim { opacity: .25; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; margin-left: 6.25rem; font-size: .8125rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { display: inline-block; width: .9rem; height: .9rem; }
.legend .l-av { background: var(--st-available); }
.legend .l-re { background: var(--st-reserved); }
.legend .l-so { background: var(--st-sold); }
@media (max-width: 56rem) { .availability { grid-template-columns: minmax(0, 1fr); } .stack-wrap { max-width: 28rem; } }

/* Apartment list (level 2) */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.filters { display: none; flex-wrap: wrap; gap: .5rem; align-items: center; }
.js .filters { display: flex; }
.floor-filters { flex-basis: 100%; padding-bottom: 1rem; border-bottom: 1px solid var(--line-light); }
.chip-btn { font: 600 .875rem/1 var(--f-body); padding: .6rem .9rem; border: 1px solid var(--line-light); background: var(--paper); color: var(--ink); border-radius: 999px; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--green); color: var(--on-dark); border-color: var(--green); }
.toggle { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; margin-left: .5rem; cursor: pointer; }
.toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--green); }
.count { font-size: .875rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.apts { border-top: 1px solid var(--line-light); }
.apt-head, .apt-row {
  display: grid;
  grid-template-columns: 4.5rem 8.5rem 7.5rem 6rem 6.5rem minmax(0, 1fr) 1.5rem;
  gap: 1rem; align-items: center; padding: .95rem .75rem;
  border-bottom: 1px solid var(--line-light);
}
.apt-head { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-block: .7rem; }
.apt-row { text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; transition: background-color .15s; }
.apt-row:hover { background: var(--paper); }
.apt-code { font-family: var(--f-display); font-size: var(--s2); font-weight: 500; }
.apt-meta { display: contents; }
.apt-go { color: var(--gold-ink); font-weight: 700; text-align: right; }
.m-only { display: none; }
.apt-row.is-sold .apt-code, .apt-row.is-sold .apt-meta { color: var(--st-sold); }
.empty { padding: 1.5rem .75rem; color: var(--ink-soft); }
@media (max-width: 46rem) {
  .apt-head { display: none; }
  .apt-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "code status go" "meta meta meta"; gap: .35rem 1rem; }
  .apt-code { grid-area: code; }
  .apt-row .status { grid-area: status; justify-self: end; }
  .apt-go { grid-area: go; }
  .m-only { display: inline; }
  .apt-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .9375rem; color: var(--ink-soft); }
}

/* Building features (level 2) */
.split { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.tall-fig img { width: 100%; aspect-ratio: 268 / 516; object-fit: cover; }
.building-copy { display: grid; gap: 1.25rem; min-width: 0; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); margin-top: .75rem; }
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line-dark); padding-right: 1.5rem; }
.feature svg { grid-row: span 2; width: 2.5rem; height: 2.5rem; color: var(--gold); }
.feature h3 { font-size: var(--s1); font-weight: 600; }
.feature p { color: var(--on-dark-soft); font-size: .9375rem; }
.energy { display: grid; gap: .75rem; margin-top: .75rem; padding: 1.25rem; border: 1px solid var(--line-dark); background: var(--green-2); }
.energy-title { font-size: var(--s-1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); }
.scale { display: flex; gap: 3px; align-items: flex-end; }
.cls { display: grid; place-items: center; min-width: 2.35rem; height: 2rem; padding-inline: .35rem .7rem; font-weight: 700; font-size: .875rem; color: #fff; clip-path: polygon(0 0, calc(100% - .45rem) 0, 100% 50%, calc(100% - .45rem) 100%, 0 100%); }
.cls.dark-text { color: var(--ink); }
.cls.ours { height: 2.9rem; min-width: 3.25rem; font-size: 1.25rem; box-shadow: inset 0 0 0 2px var(--gold-light); }
.energy-note { font-size: .875rem; color: var(--on-dark-soft); }
.energy-note strong { color: var(--on-dark); font-weight: 600; }
@media (max-width: 46rem) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .tall-fig { max-width: 22rem; }
  .tall-fig img { aspect-ratio: 4 / 5; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .cls { flex: 1 1 0; min-width: 0; font-size: .8125rem; padding-inline: .2rem .5rem; }
  .cls.ours { flex: 1.5 1 0; min-width: 0; font-size: 1.1rem; }
}

/* Location (level 2) */
.location-copy { display: grid; gap: 1.25rem; max-width: 46rem; }
.location-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: var(--s1); }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem 2rem; margin-top: .5rem; }
.use { border-top: 2px solid var(--gold); padding-top: 1rem; display: grid; gap: .4rem; }
.use h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--s2); }
.use p { color: var(--ink-soft); }

/* Apartment page (level 3) */
.apt-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.plan { background: var(--paper); border: 1px solid var(--line-light); padding: clamp(.75rem, 2vw, 1.5rem); }
.plan img { width: 100%; }
.plan figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; color: var(--ink-soft); margin-top: 1rem; }
.plan figcaption a { color: var(--ink); font-weight: 600; letter-spacing: .04em; text-decoration-color: var(--gold); text-underline-offset: .3em; }
.aside { display: grid; gap: 1.25rem; min-width: 0; }
.facts { display: grid; border-top: 1px solid var(--line-light); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .75rem; border-bottom: 1px solid var(--line-light); font-variant-numeric: tabular-nums; }
.facts dt { color: var(--ink-soft); }
.facts dd { font-weight: 600; text-align: right; }
.cta-box { display: grid; gap: .9rem; padding: 1.5rem; background: var(--green); color: var(--on-dark); }
.cta-box h2 { font-family: var(--f-display); font-weight: 500; font-size: var(--s2); }
.cta-box p { color: var(--on-dark-soft); font-size: .9375rem; }
.cta-phones { display: grid; gap: .5rem; }
.cta-phones a { display: flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-size: var(--s2); text-decoration: none; font-variant-numeric: tabular-nums; }
.cta-phones svg { width: 1.1rem; height: 1.1rem; color: var(--gold); }
@media (max-width: 52rem) { .apt-layout { grid-template-columns: minmax(0, 1fr); } }

/* Photo grid for projects with many images */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.gallery-grid a { display: block; overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.03); }
/* Photo subtitles: a short gold rule, then one line in the display serif (text in projects.json) */
.photo-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.5rem; margin-top: 1rem; color: var(--ink-soft); text-transform: none; letter-spacing: 0; }
.photo-cap > span { display: flex; gap: .8rem; font: 400 var(--s1)/1.45 var(--f-display); }
.photo-cap > span::before { content: ""; flex: none; width: 1.75rem; height: 1px; margin-top: .73em; background: var(--gold); }
.photo-cap small { margin-left: auto; font: 500 .75rem/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.dark .photo-cap { color: var(--on-dark-soft); }
@media (max-width: 52rem) { .photo-cap small { margin-left: 2.55rem; } }
@media (max-width: 52rem) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Project without apartments yet */
.soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: 1.75rem; background: var(--paper); border: 1px solid var(--line-light); max-width: 52rem; }
.soon p { max-width: 34rem; color: var(--ink-soft); font-size: var(--s1); }

/* Features with a landscape photo */
.split.landscape { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
.wide-fig img { width: 100%; }
@media (max-width: 46rem) { .split.landscape { grid-template-columns: minmax(0, 1fr); } }

.dark + .dark { border-top: 1px solid var(--line-dark); }

/* Floor plans with clickable apartments (level 2) */
[hidden] { display: none !important; }
.plans-screen { display: grid; gap: 1rem; }
.fp-side { display: contents; }
.fp-side .section-head { margin-bottom: 1rem; }
.plans-screen .fp-legend { order: 1; }
.apts-list { margin-top: clamp(2.5rem, 5vw, 4rem); }
/* Floors are picked on the building beside the plan (the elevator of the key plan, .kp-* below):
   attic … 1st floor, pilotis on the ground line, basement under it */
.fp-stage { display: grid; gap: .75rem; align-items: center; min-width: 0; }
.js .fp-stage { grid-template-columns: 3.5rem minmax(0, 1fr); }
.kp-floor.is-ground { border-bottom: 2px solid var(--ink); margin-bottom: -1px; }
.kp-floor.is-below { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(22, 34, 33, .07) 5px 6px); }
.kp-floor b.kp-word { font: 700 .5rem/1.1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.fp { background: #fff; border: 1px solid var(--line-light); padding: clamp(.5rem, 2vw, 1.25rem); min-width: 0; }
/* With JS one floor shows at a time. The white card belongs to the whole stack of floors and the floors
   share one grid cell; floors not shown keep their place (invisible, their picture not drawn, so it still
   loads only when its floor is chosen). The card is as tall as the tallest floor and never changes size
   (a smaller plan sits in its middle); when the floor changes only the plan moves (site.js). */
.js .fp-panels { position: relative; display: grid; background: #fff; border: 1px solid var(--line-light); padding: clamp(.5rem, 2vw, 1.25rem); min-width: 0; }
.js .fp-panels > .fp { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; background: none; border: 0; padding: 0; }
.js .fp-panels > .fp[hidden] { display: flex !important; visibility: hidden; }
.js .fp-panels > .fp[hidden] img { display: none; }
/* Floor change: the gold line is the edge of the
   floor slab passing the plan (small section marks at its ends point the way it runs), with the slab's
   soft shadow falling on the old floor. */
.js .fp-panels.is-moving { overflow: hidden; }
.fp.is-leaving { pointer-events: none; }
.fp.is-coming .fp-apt polygon { transition: none; }
.fp-sweep { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 0; pointer-events: none; visibility: hidden; opacity: 0; }
.fp-sweep::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 8px; transform-origin: 50% 1px;
  background: linear-gradient(var(--gold), var(--gold)) top / 100% 2px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23B98A4B'/%3E%3C/svg%3E") left .5rem top 2px / 10px 6px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23B98A4B'/%3E%3C/svg%3E") right .5rem top 2px / 10px 6px no-repeat; }
.fp-sweep.is-down::before { transform: scaleY(-1); }
.fp-sweep::after { content: ""; position: absolute; left: 0; right: 0; top: 1px; height: clamp(1.5rem, 6vh, 3rem); background: linear-gradient(rgba(22, 34, 33, .1), rgba(22, 34, 33, 0)); }
.fp-sweep.is-down::after { top: auto; bottom: 1px; background: linear-gradient(rgba(22, 34, 33, 0), rgba(22, 34, 33, .1)); }
.fp-canvas { position: relative; width: 100%; max-width: 100%; }
.fp-canvas img { width: 100%; height: 100%; }
/* top/right/bottom/left, not `inset`: Safari 13 (the client's laptop, 2026-10-10) ignores `inset` and drew
   the outlines under the plan instead of over it. The same goes for every other absolute box in this file. */
.fp-canvas svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
/* the picture under the outlines opens the lightbox: only the homes (and the hint copy, which stays off) catch clicks */
.fp-canvas svg { pointer-events: none; }
.fp-canvas svg > :not(.fp-pop) { pointer-events: auto; }
.fp-apt polygon { fill: rgba(46, 125, 79, .13); stroke: var(--st-available); stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill .15s; }
.fp-apt:hover polygon, .fp-apt:focus-visible polygon { fill: rgba(46, 125, 79, .32); }
.fp-apt.reserved polygon { fill: rgba(185, 138, 75, .2); stroke: var(--st-reserved); }
.fp-apt.reserved:hover polygon { fill: rgba(185, 138, 75, .4); }
.fp-apt.sold polygon { fill: rgb(0 0 0 / 40%); stroke: var(--st-sold); stroke-dasharray: 6 4; }
/* sold homes have no page: a plain shape, not a link */
.fp-apt.sold { cursor: default; }
/* balconies and terraces belong to the home: same colour, lighter, dashed edge */
.fp-apt polygon.balc { stroke-width: 1.25; stroke-dasharray: 5 4; fill-opacity: .55; }
.fp-label { position: absolute; transform: translate(-50%, -50%); font: 700 clamp(.6875rem, .55rem + .45vw, .9375rem)/1 var(--f-body); color: var(--ink); pointer-events: none; white-space: nowrap; }
.fp-label.sold { font-weight: 500; }
.fp-apt.dim, .fp-label.dim { opacity: .2; }
.legend.fp-legend { margin: 0; }
/* About the floor shown and the drawings: quiet small text, left-aligned under the legend */
.plans-screen .fp-info { order: 2; display: grid; gap: .5rem; font-size: .8125rem; line-height: 1.5; color: var(--ink-soft); }
.fp-info p { margin: 0; }
.fp-meta strong { display: block; color: var(--ink); font-weight: 600; }
.fp-meta a { color: var(--ink-soft); text-decoration-color: var(--line-light); text-underline-offset: .25em; white-space: nowrap; }
.fp-meta a:hover { color: var(--ink); text-decoration-color: var(--gold); }
.fp-note { font-size: .75rem; opacity: .75; }
/* Hint (site.js): ~3 s after the page opens, one available home pops out of the plan once and settles again.
   .fp-pop is a copy of its piece of the drawing, laid on top while it moves. */
.fp-pop { pointer-events: none; transform-box: view-box; }
.fp-pop polygon { fill: rgba(46, 125, 79, .2); stroke: var(--st-available); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.fp-pop polygon.balc { stroke-width: 1.5; stroke-dasharray: 5 4; fill-opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .fp-pop { animation: apt-pop 1.5s cubic-bezier(.3, 0, .2, 1) both; }
  .fp-label.is-pop { animation: label-pop 1.5s cubic-bezier(.3, 0, .2, 1); z-index: 1; }
  @keyframes apt-pop {
    0% { transform: scale(1); opacity: 0; }
    10% { opacity: 1; }
    40% { transform: scale(1.09); }
    55% { transform: scale(1.07); }
    88% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
  }
  @keyframes label-pop {
    0%, 88%, 100% { transform: translate(-50%, -50%); }
    40%, 55% { transform: translate(-50%, -50%) scale(1.12); }
  }
}

/* Real plans on the apartment page (level 3) */
.plans { position: relative; display: grid; gap: 1.5rem; min-width: 0; }
.plan { background: #fff; }
.plan-level { font-size: .9375rem; color: var(--ink-soft); margin-bottom: .75rem; }
.plan-level strong { color: var(--ink); font-weight: 600; }

.plan-frame { display: grid; grid-template-columns: minmax(0, 1fr); }
/* Renders fill their card: no padding, no caption; the picture is the link to the full size */
/* the card is the picture itself */
.plan.is-render { padding: 0; border: 0; background: none; }
.plan.is-render .plan-frame { overflow: hidden; border: 1px solid var(--line-light); background: #fff; }
a.plan-frame { position: relative; cursor: zoom-in; }
.plan .plan-frame > img { grid-area: 1 / 1; width: 100%; height: auto; max-height: none; margin: 0; }
.keyplan { background: #fff; border: 1px solid var(--line-light); padding: .75rem; }
.kp-panel svg { display: block; width: 100%; height: auto; overflow: hidden; }
.keyplan image { opacity: .3; }
.keyplan .kp-here polygon { fill: rgba(185, 138, 75, .85); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.keyplan .kp-here polygon.balc { fill: rgba(185, 138, 75, .4); stroke-dasharray: 4 3; }
.kp-labels text { font-family: var(--f-body); font-weight: 700; text-anchor: middle; dominant-baseline: central; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: .25em; stroke-linejoin: round; pointer-events: none; }
.kp-labels text.here { fill: var(--ink); stroke: none; }
/* Floor picker of the key plan: a slim elevation of the building (roof, floors top to bottom, pilotis).
   The apartment's own floors are lit gold; a green elevator car slides to the floor on show (--i).
   Without JS the picker is hidden and only the apartment's own floor shows, as before. */
.kp-grid { display: grid; gap: .5rem 1rem; align-items: center; }
.js .kp-grid { grid-template-columns: 3.75rem minmax(0, 1fr); }
.kp-building { display: none; flex-direction: column; align-self: stretch; justify-content: center; color: var(--ink); }
.js .kp-building { display: flex; }
.kp-roof { display: block; width: 100%; overflow: visible; }
.kp-roof { height: .7rem; }
.kp-roof path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.kp-shaft { position: relative; background: #fff; display: grid; grid-template-rows: repeat(var(--n), minmax(2.75rem, 1fr)); border: 1px solid var(--ink); border-top: 0; }
.kp-floor { position: relative; z-index: 2; display: grid; place-content: center; justify-items: center; gap: .2rem; padding: 0; border: 0; border-top: 1px solid var(--line-light); background: none; color: var(--ink); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kp-floor:first-of-type { border-top-color: transparent; }
.kp-floor b { font: 600 1.125rem/1 var(--f-display); }
.kp-floor small { font: 600 .625rem/1 var(--f-body); letter-spacing: .03em; color: var(--ink-soft); white-space: nowrap; }
.kp-floor:hover b { color: var(--gold-ink); }
.kp-floor.is-own b, .kp-floor.is-own small { color: var(--gold-ink); }
.kp-floor[aria-selected="true"] { cursor: default; }
.kp-floor[aria-selected="true"] b { color: var(--ink); }
.kp-floor[aria-selected="true"] small { color: var(--gold-ink); }
.kp-floor:focus-visible { outline-offset: -5px; border-radius: 0; }
/* a floor with no plan to open (sold, or not shown yet): in the picker, not selectable */
.kp-floor:disabled { cursor: default; }
.kp-floor:disabled b, .kp-floor:disabled:hover b { color: var(--st-sold); }
/* the apartment's floors: gold light inside, a bracket outside (one bracket for both levels of a maisonette) */
.kp-own { position: absolute; z-index: 0; left: 0; right: 0; top: calc(100% / var(--n) * var(--from)); height: calc(100% / var(--n) * var(--span)); }
.kp-own::after { content: ""; position: absolute; top: 3px; bottom: 3px; right: -.55rem; width: .3rem; border: 1.5px solid var(--gold); border-left: 0; }
/* the car: as tall as one floor, inset a little, a gold line on top; transform moves it (see motion) */
/* the car fills its floor: light green with a gold stripe */
.kp-car { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: calc(100% / var(--n)); background: rgba(46, 125, 79, .16); box-shadow: inset 3px 0 0 var(--gold); transform: translateY(calc(var(--i, 0) * 100%)); }
/* Pilotis and basement on the key plan (user's request 2026-10-10): their plan shows large in the plan
   column (.plan-floor) and small here, in the key plan's shape */
.kp-lowbox { display: block; }
.kp-lowpic { display: block; width: 100%; height: 100%; object-fit: contain; }
.kp-panels { min-width: 0; }
.kp-name { font-size: .8125rem; color: var(--ink-soft); margin-bottom: .4rem; }
.kp-name strong { color: var(--ink); font-weight: 600; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }

/* Contact */
.contact h2 { margin-top: 1rem; }
.contact .lede { margin-top: 1rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.contact-card { display: grid; gap: .35rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line-dark); background: var(--green-2); text-decoration: none; transition: border-color .2s; min-width: 0; }
.contact-card:hover { border-color: var(--gold); }
.cc-label { display: flex; align-items: center; gap: .5rem; font-size: var(--s-1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.cc-label svg { width: 1rem; height: 1rem; }
.cc-value { font-family: var(--f-display); font-size: var(--s3); line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cc-value.small { font-family: var(--f-body); font-size: var(--s1); font-weight: 500; padding-top: .45rem; }

/* Footer */
.site-footer { background: var(--green-deep); color: var(--on-dark-soft); font-size: .875rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-block: 2rem; }
.site-footer .brand { color: var(--on-dark); }
.foot-meta { display: grid; gap: .25rem; text-align: right; }
@media (max-width: 40rem) { .foot-meta { text-align: left; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 40rem) {
  .callbar { display: flex; align-items: center; justify-content: center; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom, 0px)); background: var(--gold); color: var(--green); font-weight: 700; letter-spacing: .02em; text-decoration: none; box-shadow: 0 -6px 20px rgba(0, 0, 0, .18); }
  .callbar svg { width: 1.15rem; height: 1.15rem; }
  .site-footer { padding-bottom: 3.75rem; }
}

/* ---------- Full-screen sections ----------
   Each section is at least one screen tall with its content centred, so one section never
   ends half way down the screen. Short neighbours share a screen (
   footer under the contact, gallery under the project title). On desktop the pictures and
   plans take the height that is left, so these screens fit without running over. */
.screen { min-height: var(--screen); display: flex; flex-direction: column; justify-content: center; }
.screen > .wrap { width: 100%; }
.section.screen, .page-hero.screen > .wrap { padding-block: var(--pad); }
.screen-last { min-height: calc(var(--vh) - var(--head) - var(--foot)); }


/* Project page: title + gallery = first screen */
.intro { justify-content: flex-start; }
.intro > .page-hero { flex: none; }
.gallery-sec { flex: 1; display: flex; flex-direction: column; padding-block: clamp(1.5rem, 4vh, 3rem); }
.gallery-sec > .wrap { flex: 1; width: 100%; }

/* Gentle entrance for the title block of inner pages (no JavaScript needed) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .page-hero .wrap > :not(.intro-copy), .page-hero .intro-copy > * { animation: rise .9s cubic-bezier(.2, .7, .1, 1) both; }
  .page-hero .wrap > :nth-child(2), .page-hero .intro-copy > :nth-child(2) { animation-delay: .08s; }
  .page-hero .wrap > :nth-child(3) { animation-delay: .16s; }
  .page-hero .wrap > :nth-child(4) { animation-delay: .24s; }
  .page-hero .wrap > :nth-child(n+5) { animation-delay: .32s; }
  /* The project's title block further down its page rises in on scroll (site.js) instead */
  .intro-late .page-hero .wrap > * { animation: none; }
  .kp-panel { animation: fade-in .3s ease-out; }
  .plans > .plan.is-in { animation: fade-in .4s ease-out; }
  .kp-car { transition: transform .6s cubic-bezier(.65, 0, .25, 1); }
}

/* Wide desktop: heading (or page title) on the left, project cards on the right. Below 72rem the
   cards get too narrow beside a heading, so they stay under it as before. */
@media (min-width: 72rem) and (min-height: 36rem) {
  .head-split { flex: 1; display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
  .head-split > .section-head { margin: 0; }
  .head-split > .projects { align-self: center; }
  .page-hero .head-split { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); }
}

/* Desktop with enough height: the sections are composed to fit one screen */
@media (min-width: 64rem) and (min-height: 36rem) {
  /* Tall feature picture never taller than the screen */
  .section.screen .tall-fig img { max-height: calc(var(--screen) - 2 * var(--pad) - 2.5rem); object-fit: cover; }

  /* Project page: tighter title, gallery pictures fill the rest of the screen */
  .intro .page-hero .wrap { padding-block: clamp(1.75rem, 5vh, 3.5rem) clamp(2rem, 5vh, 3.5rem); gap: .9rem; }
  .gallery-sec > .wrap { display: flex; flex-direction: column; }
  .gallery-sec .gallery { flex: 1; }
  .gallery-sec .gallery figure { display: flex; flex-direction: column; }
  .gallery-sec .gallery figure > a.zoom { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .gallery-sec .gallery img { flex: 1 1 0; min-height: clamp(7rem, 20vh, 12rem); height: auto; object-fit: cover; }
  .gallery-sec .gallery .tall img { aspect-ratio: auto; }
  .gallery-sec .gallery-grid { flex: 1; grid-auto-rows: minmax(clamp(5rem, 13vh, 7rem), 1fr); }
  .gallery-sec .gallery-grid a { min-height: 0; }
  .gallery-sec .gallery-grid img { width: 100%; height: 100%; aspect-ratio: auto; contain: size; }
  /* Features: rows breathe less on low screens */
  .section.screen .feature { padding-block: clamp(.7rem, 2.2vh, 1.25rem); }
  .section.screen .building-copy { gap: clamp(.8rem, 2.2vh, 1.25rem); }

  /* Floor plans: heading, floor tabs and legend beside a plan sized to the screen */
  #diamerismata { padding-top: var(--pad); }
  .plans-screen { min-height: calc(var(--screen) - 2 * var(--pad)); grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
  .fp-side { display: grid; gap: 1.5rem; align-content: center; }
  .fp-side .section-head { margin: 0; }
  .fp-canvas { width: min(100%, calc((var(--screen) - 2 * var(--pad) - 3rem) * var(--fpar, 1))); margin-inline: auto; }
  .js .fp-stage { grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1.25rem; }
  .fp-building .kp-shaft { grid-template-rows: repeat(var(--n), minmax(3.25rem, 1fr)); }
  .fp-building .kp-floor b { font-size: 1.3rem; }
  .fp-building .kp-floor b.kp-word { font-size: .5625rem; }
  .apts-list { margin-top: var(--pad); }

  /* Apartment page: the plan always fits the screen and stays in view beside the facts */
  .apt-sec { padding-top: clamp(1.75rem, 4vh, 3rem); }
  .apt-layout .plans { position: sticky; top: calc(var(--head) + 1.25rem); }
  .plan img { width: auto; max-width: 100%; max-height: calc(var(--screen) - 10rem); margin-inline: auto; }
  /* Renders: the card takes the size from the picture's aspect ratio (--par) */
  .plan.is-render { width: min(100%, calc((var(--screen) - 4rem) * var(--par, 1))); margin-inline: auto; }
}

/* Page transitions (user's request 2026-10-08), only from apartment to apartment: nothing reloads, site.js
   swaps the apartment into the same page ("Apartments in place") inside a view transition, so the header,
   the call bar and the footer never move. The plan "breathes" (below), the elevator car travels to the new
   floor, the facts change in place. Every other change of page has no transition (the user's decision).
   "jump": the plan was off screen when the link was clicked, so
   nothing travels across the screen. Browsers without view transitions just change the content. */
/* the header and the phone call bar stay above whatever moves (they would otherwise be painted under it) */
.site-header { view-transition-name: site-header; }
.callbar { view-transition-name: callbar; }
/* Slow and soft (user's request 2026-10-08: the first version was over in about 0.2 s). Only opacity
   and transform move, which the browser animates smoothly on its own; the plan and facts boxes do not
   morph their size (that runs on the main thread and drops frames). */
::view-transition-group(root) { animation-duration: .7s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
.apt-layout .plans { view-transition-name: apt-plan; }
.keyplan .kp-car { view-transition-name: kp-car; }
.apt-layout .facts { view-transition-name: apt-facts; }
::view-transition-group(apt-plan), ::view-transition-group(apt-facts) { animation: none; }
::view-transition-group(kp-car) { animation-duration: 1.2s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
/* "Breath" (the user's choice 2026-10-08, over a sideways slide): the old plan sinks back a little as it
   fades and the new one rises from a little smaller to its place */
::view-transition-old(apt-plan) { animation: vt-zoom-out .75s cubic-bezier(.45, 0, .55, 1) both; }
::view-transition-new(apt-plan) { animation: vt-zoom-in 1.05s cubic-bezier(.22, 1, .36, 1) .2s both; }
::view-transition-old(apt-facts) { animation: vt-fade-out .5s cubic-bezier(.45, 0, .55, 1) both; }
::view-transition-new(apt-facts) { animation: vt-fade-in .8s cubic-bezier(.22, 1, .36, 1) .15s both; }
html:active-view-transition-type(jump)::view-transition-group(kp-car) { animation-duration: 0s; }
@keyframes vt-zoom-out { to { opacity: 0; transform: scale(.95); } }
@keyframes vt-zoom-in { from { opacity: 0; transform: scale(.95); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
/* Loading the next apartment (user's request 2026-10-08): on the click the picture blurs softly and a gold
   ring turns over it (only the ring, the user did not want a disc or text); when the new picture is in,
   the ring runs full and the plan changes. The home clicked on the key plan glows gold meanwhile.
   A plan that is not loaded yet (first visit) fades in instead of popping. */
.apt-layout .plans img { transition: opacity .6s ease, filter .5s ease; }
.apt-layout .plans img.is-loading { opacity: 0; }
.apt-layout .plans.is-fetching img { filter: blur(8px) saturate(.85); opacity: .72; }
.plan-loader { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; display: grid; place-content: center; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(closest-side, rgba(237, 239, 234, .6), rgba(237, 239, 234, 0)); }
.plans.is-fetching .plan-loader { opacity: 1; }
.plan-loader svg { width: 3.75rem; height: 3.75rem; overflow: visible; filter: drop-shadow(0 1px 4px rgba(22, 34, 33, .18)); transform: scale(.85); transition: transform .55s cubic-bezier(.22, 1, .36, 1); animation: pl-spin 1.15s linear infinite; }
.plans.is-fetching .plan-loader svg { transform: none; }
.pl-track, .pl-arc { fill: none; stroke-width: 2.5; }
.pl-track { stroke: rgba(185, 138, 75, .25); }
.pl-arc { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 26 74; }
.plan-loader.is-done .pl-arc { animation: pl-fill .22s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes pl-spin { to { transform: rotate(1turn); } }
@keyframes pl-fill { from { stroke-dasharray: 26 74; } to { stroke-dasharray: 100 0; } }
.keyplan a.is-picked polygon:not(.balc) { stroke: var(--gold); animation: kp-pick .8s ease-in-out infinite alternate; }
@keyframes kp-pick { from { fill: rgba(185, 138, 75, .5); } to { fill: rgba(185, 138, 75, .18); } }
@media (prefers-reduced-motion: reduce) {
  .plan-loader svg, .keyplan a.is-picked polygon:not(.balc) { animation: none; }
  .keyplan a.is-picked polygon:not(.balc) { fill: rgba(185, 138, 75, .4); }
  .plan-loader svg, .plans.is-fetching .plan-loader svg { transform: none; }
}

/* Plan lightbox (user's request 2026-10-10; site.js "Plan lightbox"): the plan, centred and as large as
   fits, on black over the whole screen, square corners, an X top right. --ar is the picture's shape, so the
   box keeps its size when the full-size picture replaces the one from the page. White under the picture
   for plans drawn on a transparent background. */
.lbox { --m: clamp(.75rem, 3vmin, 2rem); position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: var(--m); border: 0; border-radius: 0; background: rgba(0, 0, 0, .94); color: var(--on-dark); overflow: hidden; overscroll-behavior: contain; touch-action: none; cursor: zoom-out; }
.lbox[open] { display: grid; place-items: center; animation: lb-fade .22s ease-out both; }
.lbox::backdrop { background: transparent; }
.lbox-pic { display: block; width: min(100%, calc((100vh - 2 * var(--m)) * var(--ar, 1))); width: min(100%, calc((100dvh - 2 * var(--m)) * var(--ar, 1))); height: auto; max-height: 100%; aspect-ratio: var(--ar, auto); object-fit: contain; border-radius: 0; background: #fff; cursor: default; }
.lbox[open] .lbox-pic { animation: lb-grow .25s cubic-bezier(.22, 1, .36, 1) both; }
.lbox-pic.is-loading { opacity: 0; }
.lbox-pic { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.lbox-x { position: fixed; top: calc(env(safe-area-inset-top, 0px) + .5rem); right: calc(env(safe-area-inset-right, 0px) + .5rem); display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 1px solid rgba(212, 176, 122, .55); border-radius: 0; background: rgba(0, 0, 0, .55); color: var(--on-dark); cursor: pointer; transition: color .2s, border-color .2s; }
.lbox-x svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; }
.lbox-x:hover, .lbox-x:focus-visible { color: var(--gold-light); border-color: var(--gold-light); }
.lbox-x:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.lbox.is-closing { animation: lb-out .16s ease-in both; }
.lbox.is-closing .lbox-pic { animation: none; }
/* no scrolling behind it; the place of the scrollbar stays (no jump) and turns black */
html.lbox-open { overflow: hidden; scrollbar-gutter: stable; background: #000; }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }
@keyframes lb-grow { from { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .lbox[open], .lbox[open] .lbox-pic, .lbox.is-closing { animation: none; }
}
