/* PITIUS GROUP — site styles.
   Sizes follow the 1920px-wide template and scale fluidly with the viewport. */

:root {
  --bg: #f8f8f8;
  --ink: #1c1c1c;
  --olive: #6c603d;
  --olive-dark: #554a2f;
  --muted: #6a6a6a;
  --white: #ffffff;

  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-display: "Manrope", Arial, sans-serif;

  --pad: clamp(16px, 2.24vw, 43px);
  --inset: 11.6vw; /* hero content / nav inset (223px @1920) */

  --fs-body: clamp(15px, 1.302vw, 25px);
  --fs-lead: clamp(20px, 1.83vw, 35px);
  --fs-small: clamp(14px, 1.07vw, 20.6px);
  --fs-stat: clamp(60px, 7.03vw, 135px);
  --fs-cta: clamp(26px, 2.25vw, 43.3px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 104px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

section[id] { scroll-margin-top: 72px; }

.label {
  color: var(--olive);
  text-transform: uppercase;
  font-size: var(--fs-body);
  letter-spacing: .01em;
}

/* ───────────── Header ───────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  color: var(--white);
  transition: background-color .35s var(--ease), color .35s var(--ease), height .35s var(--ease), box-shadow .35s;
}

.site-header.is-solid {
  --header-h: 68px;
  background: rgba(248, 248, 248, .94);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(28, 28, 28, .08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.logo {
  position: relative;
  flex: none;
  width: clamp(46px, 3.6vw, 69px);
  aspect-ratio: 1;
  transition: width .35s var(--ease);
}
.is-solid .logo { width: 44px; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s; }
.logo__dark { opacity: 0; }
.is-solid .logo__light { opacity: 0; }
.is-solid .logo__dark { opacity: 1; }

.nav {
  position: absolute;
  left: var(--inset);
  right: var(--inset);
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-body);
}
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after,
.nav a.is-current::after { transform: scaleX(1); }

.lang { position: relative; margin-left: auto; }
.lang__btn { display: flex; align-items: center; gap: 6px; padding: 6px 0; font-size: var(--fs-body); }
.lang__btn svg { width: 12px; height: 8px; transition: transform .25s; }
.lang.is-open .lang__btn svg { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: -12px; top: calc(100% + 6px);
  margin: 0; padding: 6px 0; list-style: none;
  background: var(--bg); color: var(--ink);
  min-width: 96px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu button { display: block; width: 100%; text-align: left; padding: 8px 16px; font-size: 16px; }
.lang__menu button:hover { color: var(--olive); }
.lang__menu button[aria-selected="true"] { color: var(--olive); }

.burger { display: none; }

/* ───────────── Hero ───────────── */

.hero {
  position: relative;
  height: max(560px, min(59.57vw, 100svh));
  overflow: hidden;
  color: var(--white);
  background: #1b1d17;
}
/* the hero is a slideshow: each render has its own zoom (--z), focus (--ox) and phone crop (--op-m) */
.hero__bg { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
}
.hero__slide.is-active,
.hero__slide.is-leaving { visibility: visible; }
.hero__slide.is-active { z-index: 2; }
.hero__slide.is-leaving { z-index: 1; }
.hero__slide img {
  --zz: var(--z, 1);
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 100%;
  transform-origin: var(--ox, 50%) 100%;
  transform: scale(var(--zz));
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(0deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 45%),
    rgba(0,0,0,.12);
}
.hero__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 calc(var(--inset) - .9vw) 2.4vw;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  row-gap: 1.1vw;
}
.hero__tagline {
  padding-left: .9vw;
  font-size: var(--fs-small);
  line-height: 1.2;
}
.hero__title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.25vw;
  line-height: .78;
  letter-spacing: -.065em;
  white-space: nowrap;
  margin-left: -.04em;
}

/* ───────────── About ───────────── */

.about {
  padding: 6.8vw var(--pad) 0;
  display: grid;
  grid-template-columns: 16.96% 39.37% 8.01% 35.66%;
  row-gap: 4.2vw;
}
.about__label { grid-column: 1; padding-top: .2em; }
.about__intro { grid-column: 2; }
.about__lead {
  font-size: var(--fs-lead);
  line-height: 1.04;
  max-width: 22em;
}
.about__lead em { font-style: normal; color: var(--olive); }
.about__text { margin-top: 1.9em; line-height: 1.2; max-width: 30em; }
.about__sign {
  margin-top: 2.6em;
  padding-left: .6em;
  border-left: 6px solid var(--olive);
  line-height: 1.2;
}
.about__img1 { grid-column: 4; margin-top: .3vw; aspect-ratio: 654 / 348; }
.about__img2 { grid-column: 1 / 3; aspect-ratio: 1033 / 348; }
.about__img1 img,
.about__img2 img { width: 100%; height: 100%; object-fit: cover; }
.about__img1 img { object-position: 50% 68%; }
.about__img2 img { object-position: 50% 87%; }
.about__text2 {
  grid-column: 3 / 5;
  align-self: end;
  justify-self: end;
  text-align: right;
  max-width: 28em;
  margin-bottom: .2em;
}

/* ───────────── Stats ───────────── */

.stats { padding-top: 7.1vw; }
.stats__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 var(--pad) .55em;
  font-size: var(--fs-lead);
  border-bottom: 1px solid var(--ink);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 0 1.2vw 2.3vw 2.08vw;
  min-height: 11.3vw;
  border-left: 1px solid var(--ink);
}
.stat:first-child { border-left: 0; padding-left: var(--pad); }
.stat__num {
  display: flex; align-items: flex-end; gap: 1.2vw;
  font-size: var(--fs-stat);
  line-height: 1;
  letter-spacing: -.075em;
}
.stat__num b { font-weight: 400; font-variant-numeric: tabular-nums; }
.stat__unit {
  font-size: var(--fs-body);
  letter-spacing: 0;
  color: var(--olive);
  padding-bottom: .55em;
}
.stat__label { margin-top: .35em; }

/* ───────────── Location ───────────── */

.location { padding-top: 7.3vw; }
.location .label { padding: 0 var(--pad) 1.4vw; }
.map {
  position: relative;
  aspect-ratio: 1920 / 991;
  overflow: hidden;
  background: #d9d9d6;
}
.map img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 67.2% 26.5%;
}
.map__pin {
  position: absolute;
  left: 67.2%; top: 26.5%;
  display: flex; align-items: center; gap: .45vw;
  transform: translate(calc(-1 * clamp(10px, .68vw, 13px)), -50%);
  color: var(--olive);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(12px, .9vw, 17.2px);
  letter-spacing: -.04em;
  white-space: nowrap;
}
.map__pin svg { width: clamp(20px, 1.35vw, 26px); height: auto; flex: none; }
.map__pin::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: clamp(20px, 1.35vw, 26px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--olive);
  transform: translateY(-50%);
  animation: pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { opacity: .55; transform: translateY(-50%) scale(1); }
  100% { opacity: 0; transform: translateY(-50%) scale(3); }
}

/* ───────────── Gallery ───────────── */

.gallery { padding-top: 7.8vw; }
.gallery__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--pad) 1.3vw;
  gap: 16px;
}
.carousel {
  --w: 28.33cqw;
  --w-active: 50.26cqw;
  --gap: .42cqw;
  --h: 39cqw;
  container-type: inline-size;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
.carousel__track {
  --i: 2;
  display: flex;
  gap: var(--gap);
  height: var(--h);
  transform: translateX(calc(50cqw - var(--w-active) / 2 - var(--i) * (var(--w) + var(--gap))));
  transition: transform .8s var(--ease);
}
.carousel__slide {
  flex: none;
  width: var(--w);
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: width .8s var(--ease);
}
.carousel__slide.is-active { width: var(--w-active); cursor: zoom-in; }
.carousel__track.no-anim,
.carousel__track.no-anim .carousel__slide { transition: none; }
.carousel__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 1.2s var(--ease), filter .6s;
}
.carousel__slide:hover img { transform: scale(1.03); }

.carousel__dots {
  display: flex; justify-content: center; gap: 2px;
  padding-top: 1vw;
}
.carousel__dots button {
  width: 15.5px; height: 15.5px;
  padding: 0;
  border-radius: 50%;
  background: var(--olive);
  opacity: .32;
  transition: opacity .3s;
}
.carousel__dots button[aria-current="true"] { opacity: 1; }
.carousel__dots button:hover { opacity: .7; }

/* ───────────── Specs ───────────── */

.specs {
  position: relative;
  padding: 7.4vw var(--pad) 7.6vw;
  display: grid;
  grid-template-columns: 31.25vw 1fr;
}
.specs__photos { display: flex; flex-direction: column; gap: 3.7vw; }
.specs__photo1 { width: 100%; aspect-ratio: 600 / 441; }
.specs__photo2 { width: 81%; aspect-ratio: 486 / 401; }
.specs__photos img { width: 100%; height: 100%; object-fit: cover; }
.specs__photo1 img { object-position: 50% 100%; }
.specs__photo2 img { object-position: 50% 67%; }
.specs__title {
  position: absolute;
  right: var(--pad);
  top: 7.4vw;
  text-align: right;
}

.stage {
  position: relative;
  margin-left: 9.2vw;
  width: 39.58vw;
  aspect-ratio: 760 / 920;
  color: var(--olive);
}
.stage__line {
  position: absolute;
  left: 34.36%; top: 6.28%;
  width: 42.34%;
  height: auto;
  overflow: visible;
}
.stage__line path:first-child {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.feature {
  position: absolute;
  width: 48%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--ink);
}
.feature svg { display: block; margin: 0 auto; width: clamp(38px, 2.86vw, 55px); height: auto; color: var(--olive); }
.feature h3 { font-size: clamp(22px, 2.17vw, 41.6px); line-height: 1.1; margin-top: .1em; }
.feature p { margin-top: .95em; font-size: clamp(13px, 1.135vw, 21.8px); line-height: 1.2; }
.feature--flats { left: 22%; top: 1%; }
.feature--lift { left: 82.3%; top: 18%; }
.feature--parking { left: 37%; top: 44.4%; }
.feature--windows { left: 65.4%; top: 81.4%; }

/* ───────────── Contacts ───────────── */

.contacts {
  position: relative;
  overflow: hidden;
  min-height: 35.05vw;
  padding: 1.82vw var(--pad) 4vw;
  background: var(--olive);
  color: var(--white);
  display: grid;
  grid-template-columns: 35.05vw 1fr auto;
  grid-template-rows: auto 1fr auto;
}
.contacts__tree {
  position: absolute;
  left: 56.55%;
  top: 1.67vw;
  width: 34.6vw;
  height: auto;
  pointer-events: none;
}
.contacts__intro { grid-column: 1 / 3; position: relative; }
.contacts__title {
  font-size: var(--fs-cta);
  line-height: 1.2;
  text-transform: uppercase;
}
.contacts__text { margin-top: 1.25em; }
.contacts__addr {
  grid-column: 3;
  position: relative;
  text-align: right;
  line-height: 1.2;
  font-style: normal;
}
.contacts__addr a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contacts__list {
  grid-column: 1; grid-row: 3;
  position: relative;
  display: flex; flex-direction: column; gap: .55vw;
  margin: 0; padding: 0; list-style: none;
  align-self: end;
}
.contacts__list a { display: inline-flex; align-items: center; gap: .9vw; }
.contacts__list svg { width: clamp(30px, 2.06vw, 39.5px); height: auto; flex: none; }
.contacts__list a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.socials {
  grid-column: 2; grid-row: 3;
  position: relative;
  display: flex; gap: .3vw;
  align-self: end;
}
.socials a { display: block; transition: transform .3s var(--ease); }
.socials a:hover { transform: translateY(-3px); }
.socials svg { display: block; width: clamp(40px, 2.7vw, 52px); height: auto; }

/* ───────────── Modal ───────────── */

.modal {
  width: min(1200px, 92vw);
  max-height: 90vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: visible;
}
.modal::backdrop { background: rgba(20, 18, 12, .86); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal__close {
  position: absolute; right: 0; top: -44px;
  width: 36px; height: 36px;
  font-size: 30px; line-height: 1;
  color: var(--white);
}
.modal__body img { display: block; width: 100%; max-height: 82vh; object-fit: contain; background: #000; }

/* ───────────── Responsive ───────────── */

@media (max-width: 1100px) {
  .specs { grid-template-columns: 1fr; row-gap: 48px; }
  .specs__title { position: static; text-align: left; grid-row: 1; }
  .specs__photos { grid-row: 3; flex-direction: row; gap: 12px; }
  .specs__photo1, .specs__photo2 { width: auto; flex: 1; aspect-ratio: 4 / 3; }
  .stage { grid-row: 2; margin: 0; width: 100%; aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .stage__line { display: none; }
  .feature { position: static; width: auto; transform: none; }
  
}

@media (max-width: 860px) {
  :root { --header-h: 64px; --inset: var(--pad); }
  .site-header.is-solid { --header-h: 58px; }
  .is-solid .logo, .logo { width: 40px; }

  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; margin-left: 14px; margin-right: -2px;
    padding: 0 2px;
    position: relative; z-index: 2;
  }
  .lang__btn { min-height: 44px; padding: 0 4px; }
  .burger span { display: block; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .nav-open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-open .burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .lang, .logo { z-index: 2; }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 22px;
    padding: 80px var(--pad) 40px;
    background: var(--olive); color: var(--white);
    font-size: 30px;
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .nav-open.site-header { color: var(--white); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-open .logo__light { opacity: 1; }
  .nav-open .logo__dark { opacity: 0; }

  .hero { height: 100svh; min-height: 560px; }
  .hero__content { padding: 0 var(--pad) 28px; row-gap: 18px; }
  .hero__tagline { padding: 0; margin: 0; }
  .hero__title { font-size: 15.4vw; }

  .about { grid-template-columns: 1fr; row-gap: 28px; padding-top: 64px; }
  .about > * { grid-column: 1 !important; }
  .about__text2 { justify-self: start; text-align: left; max-width: none; }
  .about__img1 { aspect-ratio: 4 / 3; margin: 0; }
  .about__img2 { aspect-ratio: 4 / 3; }

  .stats { padding-top: 72px; }
  .stats__head { font-size: 18px; gap: 12px; }
  .stats__head span { white-space: nowrap; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child { padding: 18px var(--pad) 26px; min-height: 0; border-left: 0; border-bottom: 1px solid var(--ink); }
  .stat:nth-child(even) { border-left: 1px solid var(--ink); }
  .stat__num { gap: 10px; }

  .location, .gallery { padding-top: 72px; }
  .location .label { padding-bottom: 16px; }
  .map { aspect-ratio: 4 / 5; }

  .gallery__head { flex-direction: column; align-items: flex-start; padding-bottom: 20px; }
  .carousel { --w: 80cqw; --w-active: 80cqw; --gap: 2.5cqw; --h: 100cqw; }
  .carousel__dots { padding-top: 14px; }

  .specs { padding-top: 72px; padding-bottom: 72px; }
  .specs__photos { flex-direction: column; }
  .specs__photo1, .specs__photo2 { flex: none; width: 100%; }

  .contacts { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 32px; padding: 48px var(--pad) 56px; min-height: 0; }
  .contacts__intro, .contacts__addr, .contacts__list, .socials { grid-column: 1; grid-row: auto; }
  .contacts__addr { text-align: left; }
  .contacts__text br { display: none; }
  .contacts__list { gap: 12px; }
  .contacts__list a { gap: 12px; }
  .socials { gap: 8px; }
  .contacts__tree { left: auto; right: -18%; top: auto; bottom: -12%; width: 90vw; opacity: .7; }
}

@media (max-width: 520px) {
  .stage { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat:nth-child(even) { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }

}


/* ═════════════ New design and motion layer (landing page only) ═════════════
   Every hidden starting state sits under .motion, which the page sets only when
   motion is allowed; without it, everything simply shows. */

:root {
  --expo: cubic-bezier(.16, 1, .3, 1);
  --inout: cubic-bezier(.76, 0, .24, 1);
}

body { overflow-x: clip; }

/* Sections ride up and over the fixed-feeling hero */
main > section:not(.hero),
.contacts { position: relative; z-index: 1; background: var(--bg); }
main > section:not(.hero) { box-shadow: 0 1px 0 var(--bg); } /* seals rounding gaps, or the hero shows through as a hairline */
.contacts { background: var(--olive); }

/* ── Intro curtain ── */
.intro { display: none; }
.intro-on .intro {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  position: fixed; inset: 0; z-index: 100;
  background: var(--olive);
  clip-path: inset(0);
  transition: clip-path 1.05s var(--inout);
  animation: intro-giveup 0s linear 5s forwards;
}
.intro img { width: clamp(90px, 8vw, 150px); height: auto; animation: intro-tree 1.4s var(--expo) both; }
.intro__line { position: relative; display: block; width: clamp(120px, 14vw, 260px); height: 1px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.intro__line::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; animation: intro-bar 1.25s var(--inout) forwards; }
.is-ready .intro { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes intro-tree { from { opacity: 0; transform: translateY(26px) scale(.92); } }
@keyframes intro-bar { to { transform: scaleX(1); } }
@keyframes intro-giveup { to { visibility: hidden; } }

/* ── Scroll progress and pointer ── */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; background: var(--olive); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--olive);
  color: #fff; font-size: 13px; line-height: 1.1; text-align: center;
  opacity: 0; pointer-events: none;
  transition: width .45s var(--expo), height .45s var(--expo), margin .45s var(--expo), background-color .3s, opacity .3s;
  will-change: transform;
}
.cursor span { opacity: 0; transition: opacity .25s; white-space: nowrap; }
.cursor.is-on { opacity: .92; }
.cursor.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(108, 96, 61, .24); }
.cursor.is-drag { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--olive); }
.cursor.is-drag span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ── Header ── */
.site-header { transition: background-color .35s var(--ease), color .35s var(--ease), height .35s var(--ease), box-shadow .35s, transform .6s var(--expo); }
.site-header.is-hidden:not(.nav-open) { transform: translateY(-100%); }
@media (min-width: 861px) {
  .motion .nav a, .motion .logo, .motion .lang { opacity: 0; transform: translateY(-16px); }
  .motion.is-ready .nav a, .motion.is-ready .logo, .motion.is-ready .lang { opacity: 1; transform: none; transition: opacity .9s, transform 1.1s var(--expo), width .35s var(--ease); }
  .motion.is-ready .logo { transition-delay: .55s; }
  .motion.is-ready .nav a:nth-child(1) { transition-delay: .62s; }
  .motion.is-ready .nav a:nth-child(2) { transition-delay: .69s; }
  .motion.is-ready .nav a:nth-child(3) { transition-delay: .76s; }
  .motion.is-ready .nav a:nth-child(4) { transition-delay: .83s; }
  .motion.is-ready .nav a:nth-child(5) { transition-delay: .9s; }
  .motion.is-ready .nav a:nth-child(6) { transition-delay: .97s; }
  .motion.is-ready .lang { transition-delay: 1.04s; }
}

/* ── Hero ── */
.hero { position: sticky; top: 0; z-index: 0; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
/* each render is zoomed so the building stands on the title; a new one wipes in from the left,
   and every render drifts slowly to the right while it is on screen */
.hero__bg { transform-origin: 62% 72%; will-change: transform; }
.motion .hero__slide.is-wiping { animation: hero-wipe 1.7s cubic-bezier(.77, 0, .18, 1) both; }
.motion .hero__slide.is-active img,
.motion .hero__slide.is-leaving img { animation: hero-drift 11s linear both; will-change: transform; }
@keyframes hero-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
/* a slide can drift less (--dz zoom, --drift travel) so more of its render stays in view */
@keyframes hero-drift {
  from { transform: translate3d(calc(var(--drift, 1.4%) * -1), 0, 0) scale(calc(var(--zz) * var(--dz, 1.045))); }
  to { transform: translate3d(var(--drift, 1.4%), 0, 0) scale(calc(var(--zz) * var(--dz, 1.045))); }
}

/* slide progress: three thin lines under the header, the current one fills while its render is shown */
.hero__dots {
  position: absolute; z-index: 1;
  top: calc(var(--header-h) + 14px); right: var(--pad);
  display: flex; gap: 6px;
}
.hero__dots button { position: relative; width: clamp(30px, 2.3vw, 44px); height: 22px; }
.hero__dots button::before,
.hero__dots i {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; margin-top: -1px;
  background: rgba(255, 255, 255, .34);
}
.hero__dots i { background: var(--white); transform: scaleX(0); transform-origin: left; }
.hero__dots [aria-current="true"] i { transform: none; }
.hero__dots.is-playing [aria-current="true"] i { animation: hero-dot var(--hold, 7s) linear both; }
.hero__dots button:hover::before { background: rgba(255, 255, 255, .6); }
.hero__dots button:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
@keyframes hero-dot { from { transform: scaleX(0); } }
.motion .hero__dots { opacity: 0; }
.motion.is-ready .hero__dots { opacity: 1; transition: opacity 1s var(--ease) 1.3s; }
.motion .hero__media { transform: scale(1.16); transition: transform 2.8s var(--expo); }
.motion.is-ready .hero__media { transform: none; }
.hero__dim { position: absolute; inset: 0; background: #0d0f0a; opacity: 0; pointer-events: none; }
.hero__content { will-change: transform; }

.hero__content { padding-bottom: 2.76vw; }
.hero__title { font-size: 12.83vw; margin-left: .9vw; transform-origin: 50% 100%; }
.hero__title .ch { display: inline-block; will-change: transform; }
.motion .hero__title { clip-path: inset(-.08em -.1em -.04em -.1em); }
.motion .hero__title .ch { transform: translateY(112%); }
.motion.is-ready .hero__title .ch { transform: none; transition: transform 1.5s var(--expo) calc(.28s + var(--i) * 42ms); }

.motion.is-ready .hero__tagline .w__i { transition-delay: calc(.9s + var(--i) * 26ms); }

/* ── Word-by-word text ── */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.w__i { display: inline-block; }
.motion .w__i { transform: translateY(115%); }
.motion .is-in .w__i { transform: none; transition: transform 1.05s var(--expo) calc(var(--i) * 20ms); }

/* ── Framed images: a wipe, a settle, then parallax on scroll ── */
.frame { position: relative; overflow: hidden; margin: 0; background: #e4e3df; }
.frame__s { position: absolute; inset: 0; }
.frame__s img {
  position: absolute; max-width: none;
  left: var(--x, 0); top: var(--y, 0);
  width: var(--w, 100%); height: auto;
  object-fit: initial; object-position: initial;
  will-change: transform;
}
/* the wipe sits on the inner layer: browsers report a fully clipped element as not visible, so its reveal would never fire */
.motion .frame { background: none; }
.motion .frame .frame__s { clip-path: inset(0 0 100% 0); transform: scale(1.26); transition: clip-path 1.5s var(--inout), transform 2.3s var(--expo); }
.motion .frame.is-in .frame__s { clip-path: inset(0); transform: scale(1); }

/* ── About ── */
.about__lead { line-height: 1; }
.about__text { margin-top: 1.5em; }

/* ── Stats ── */
.stats__head { border-bottom: 0; position: relative; }
.stats__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform-origin: left; }
.motion .stats__head::after { transform: scaleX(0); transition: transform 1.7s var(--inout); }
.motion .stats.is-in .stats__head::after { transform: none; }
.stats__head > span { transition: opacity 1s .5s; }
.motion .stats:not(.is-in) .stats__head > span { opacity: 0; }

.stat { position: relative; border-left: 0; isolation: isolate; overflow: hidden; transition: color .45s; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--ink); transform-origin: top; }
.stat:first-child::before { display: none; }
.motion .stat::before { transform: scaleY(0); transition: transform 1.2s var(--inout) .35s; }
.motion .stats.is-in .stat::before { transform: none; }
.stat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--olive); transform: translateY(101%); transition: transform .7s var(--expo); }
.stat__unit { transition: color .45s, opacity .8s, transform 1s var(--expo); }
.stat__unit--sup { align-self: flex-start; padding: .45em 0 0; }
.stat__label { transition: opacity .8s, transform 1s var(--expo); }
.stat__num b { display: inline-block; transition: opacity .8s, transform 1.2s var(--expo); }
.motion .stats:not(.is-in) .stat__num b { opacity: 0; transform: translateY(32%); }
.motion .stats:not(.is-in) .stat__unit, .motion .stats:not(.is-in) .stat__label { opacity: 0; transform: translateY(14px); }
.stats.is-in .stat:nth-child(2) .stat__num b, .stats.is-in .stat:nth-child(2) .stat__unit, .stats.is-in .stat:nth-child(2) .stat__label { transition-delay: .12s; }
.stats.is-in .stat:nth-child(3) .stat__num b, .stats.is-in .stat:nth-child(3) .stat__unit, .stats.is-in .stat:nth-child(3) .stat__label { transition-delay: .24s; }
.stats.is-in .stat:nth-child(4) .stat__num b, .stats.is-in .stat:nth-child(4) .stat__unit, .stats.is-in .stat:nth-child(4) .stat__label { transition-delay: .36s; }
@media (hover: hover) {
  .stat:hover { color: #fff; }
  .stat:hover::after { transform: none; }
  .stat:hover .stat__unit { color: #fff; transition-delay: 0s; }
}

/* ── Google map: dark grey, Ctrl + scroll to zoom (Google's own gesture rule) ── */
.map { aspect-ratio: 1920 / 990; background: #1d1d1d; will-change: clip-path; }
.map__frame {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) invert(.92) contrast(.9) brightness(.98);
}
.map__label {
  position: absolute; left: 50%; top: 50%;
  display: flex; align-items: center; gap: 10px;
  margin: -12px 0 0 18px;
  color: #fff;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(13px, 1.15vw, 22px); letter-spacing: -.04em; white-space: nowrap;
  pointer-events: none;
  transition: opacity .35s;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .75);
}
.map__label i { position: absolute; left: -18px; top: 12px; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: rgba(255, 255, 255, .55); animation: map-pulse 2.4s ease-out infinite; }
@keyframes map-pulse { 0% { opacity: .75; transform: scale(.6); } 100% { opacity: 0; transform: scale(3.6); } }
.map.is-hover .map__label, .map.is-touched .map__label { opacity: 0; }
.map__hint {
  position: absolute; right: var(--pad); top: 14px;
  padding: .5em .9em; border-radius: 999px;
  background: rgba(20, 20, 20, .78); color: #e8e8e8;
  font-size: clamp(12px, .85vw, 15px);
  pointer-events: none;
}
.map__hint kbd { font: inherit; padding: .05em .45em; border: 1px solid rgba(255, 255, 255, .45); border-radius: 4px; }
@media (hover: none), (pointer: coarse) { .map__hint { display: none; } }

/* ── Gallery: three visible slides, as drawn ── */
.carousel { --w: 24.43cqw; --w-active: 50.2cqw; --gap: .47cqw; }
.carousel[data-dragging] { cursor: grabbing; }
.carousel__slide.is-active img { transform: scale(1.05); transition: transform 7s linear, filter .6s; }
.motion .carousel__slide { opacity: 0; transform: translateY(70px); transition: width .8s var(--ease), opacity 1.1s var(--expo), transform 1.3s var(--expo); }
.motion .gallery.is-in .carousel__slide { opacity: 1; transform: none; }
.carousel__dots button { position: relative; transition: opacity .3s, transform .5s var(--expo); }
.carousel__dots button[aria-current="true"] { transform: scale(1.14); }

/* ── Architecture: pinned, the details travel sideways ── */
.arch { --card-h: 64vh; padding: 7.4vw 0 2vw; overflow-x: auto; }
.arch__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--pad) 1.4vw; }
.arch__count { color: var(--muted); font-size: var(--fs-body); font-variant-numeric: tabular-nums; }
.arch__count b { color: var(--olive); font-weight: 400; }
.arch__word { display: none; }
.arch__track { display: flex; gap: clamp(12px, 1.6vw, 30px); padding: 0 var(--pad); width: max-content; }
.arch__card { flex: none; margin: 0; width: calc(var(--card-h) * .8); }
.arch__img { position: relative; height: var(--card-h); overflow: hidden; background: #e4e3df; }
.arch__img img { position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.arch__card figcaption { display: flex; gap: 1em; padding-top: .8em; font-size: clamp(14px, 1.05vw, 19px); }
.arch__card figcaption i { color: var(--olive); font-style: normal; }

@media (min-width: 861px) {
  .motion .arch { padding: 0; overflow: visible; }
  .motion .arch__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
  .motion .arch__head { position: absolute; left: 0; right: 0; top: clamp(84px, 11vh, 120px); padding-bottom: 0; }
  .motion .arch { --card-h: 62vh; }
  .motion .arch__track { position: relative; margin-top: 7vh; padding-left: 28vw; padding-right: 28vw; will-change: transform; }
  .motion .arch__card:nth-child(even) { margin-top: 4vh; }
  .motion .arch__word {
    display: block; position: absolute; left: 0; top: 50%;
    font: 600 21vw/.8 var(--font-display); letter-spacing: -.065em; white-space: nowrap;
    color: rgba(108, 96, 61, .1);
    pointer-events: none; will-change: transform;
  }
  .motion .arch__card { transition: opacity 1.1s var(--expo), transform 1.3s var(--expo); }
  .motion .arch:not(.is-in) .arch__card { opacity: 0; transform: translateX(90px); }
  .arch__card:nth-child(2) { transition-delay: .08s; }
  .arch__card:nth-child(3) { transition-delay: .16s; }
}
@media (max-width: 860px) {
  .arch { --card-h: 100vw; padding-top: 72px; scroll-snap-type: x proximity; }
  .arch__head { padding-bottom: 16px; }
  .arch__card { width: 80vw; scroll-snap-align: center; }
}

/* ── Rooftop and common areas: one wide lounge, then the rest staggered on twelve columns ── */
.amen { padding-top: 7.4vw; }
.amen__head {
  display: grid;
  grid-template-columns: 16.96% 39.37% 1fr; /* the same first columns as About */
  padding: 0 var(--pad) 2.6vw;
}
.amen__label { padding-top: .2em; padding-right: 1em; }
.amen__lead { grid-column: 2; font-size: var(--fs-lead); line-height: 1; max-width: 22em; }
.amen__lead em { font-style: normal; color: var(--olive); }

.amen__item { margin: 0; }
.amen__item figcaption {
  display: flex; align-items: baseline; gap: 1em;
  padding-top: .8em;
  font-size: clamp(14px, 1.05vw, 19px);
  transition: opacity .9s .45s, transform 1.1s var(--expo) .45s;
}
.amen__item figcaption i { color: var(--olive); font-style: normal; }
.amen__item figcaption em { margin-left: auto; color: var(--muted); font-style: normal; white-space: nowrap; }
.motion .amen__frame:not(.is-in) + figcaption { opacity: 0; transform: translateY(12px); }

.amen__frame { width: 100%; }
.amen__frame .frame__s { background: #d8cfc1; } /* a warm tone instead of a blank gap while a picture loads */
.amen__wide { aspect-ratio: 1920 / 1000; will-change: clip-path; }
.amen__frame--land { aspect-ratio: 3 / 2; }
.amen__frame--port { aspect-ratio: 4 / 5; }
.amen__item--wide figcaption { padding-left: var(--pad); padding-right: var(--pad); }

.amen__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(12px, 1.6vw, 30px);
  row-gap: 4.2vw;
  align-items: end;
  padding: 4.2vw var(--pad) 0;
}
.amen__col { grid-column: 1 / 8; display: flex; flex-direction: column; justify-content: space-between; gap: 2.4vw; align-self: stretch; }
.amen__text { max-width: 30em; line-height: 1.2; }
.amen__item--port { grid-column: 8 / 13; }
.amen__item--stage { grid-column: 1 / 6; }
.amen__item--terrace { grid-column: 6 / 13; }

@media (hover: hover) {
  .motion .amen__frame.is-in:hover .frame__s { transform: scale(1.025); }
}

@media (max-width: 860px) {
  .amen { padding-top: 72px; }
  .amen__head { grid-template-columns: 1fr; row-gap: 20px; padding-bottom: 24px; }
  .amen__lead { grid-column: 1; }
  .amen__wide { aspect-ratio: 4 / 3; }
  .amen__frame--port { aspect-ratio: 1 / 1; } /* crops away the dark beam at the top of this render */
  .amen__grid { grid-template-columns: 1fr; row-gap: 28px; padding-top: 28px; }
  .amen__col, .amen__item--port, .amen__item--stage, .amen__item--terrace { grid-column: 1; }
  .amen__col { gap: 28px; }
}

/* ── Specifications: the route draws with the scroll ── */
.stage__line { overflow: visible; }
.stage__line path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion .stage__line path { stroke-dashoffset: 1; }
.stage__line circle { transform-box: fill-box; transform-origin: center; transition: transform .7s var(--expo); }
.stage__head { display: none; }
.motion .stage__line circle { transform: scale(0); }
.motion .stage__line circle.is-on { transform: none; }
.motion .stage__head { display: block; fill: var(--olive); }
.feature svg { transition: transform 1.1s var(--expo), opacity .8s; }
.motion .feature { opacity: 0; transform: translateX(-50%) translateY(30px); transition: opacity .9s, transform 1.2s var(--expo); }
.motion .feature svg { transform: scale(.45) rotate(-10deg); }
.motion .feature.is-on { opacity: 1; transform: translateX(-50%); }
.motion .feature.is-on svg { transform: none; }
@media (max-width: 1100px) {
  .motion .feature, .motion .feature { transform: translateY(30px); }
  .motion .feature.is-on { transform: none; }
}

/* ── Contacts ── */
.contacts__tree { transform-origin: 50% 100%; animation: sway 8s ease-in-out infinite alternate; transition: translate 1.8s var(--expo), opacity 1.4s; }
@keyframes sway { from { rotate: -.8deg; } to { rotate: .8deg; } }
.motion .contacts:not(.is-in) .contacts__tree { opacity: 0; translate: 0 10%; }
.contacts__addr, .contacts__list li, .socials a { transition: opacity .9s, transform 1.1s var(--expo); }
.motion .contacts:not(.is-in) .contacts__addr { opacity: 0; transform: translateY(16px); }
.motion .contacts:not(.is-in) .contacts__list li { opacity: 0; transform: translateX(-26px); }
.motion .contacts:not(.is-in) .socials a { opacity: 0; transform: scale(.4); }
.contacts.is-in .contacts__list li:nth-child(2) { transition-delay: .12s; }
.contacts.is-in .socials a:nth-child(1) { transition-delay: .25s; }
.contacts.is-in .socials a:nth-child(2) { transition-delay: .35s; }
.contacts.is-in .contacts__addr { transition-delay: .3s; }
.socials a:hover { transform: translateY(-4px) scale(1.06); transition-delay: 0s; }

/* ── Project credits: developer and architect, lined up with the contact row ── */
.credits { grid-column: 3; grid-row: 3; position: relative; align-self: end; display: flex; gap: clamp(28px, 3.4vw, 66px); }
.credit { display: flex; flex-direction: column; justify-content: flex-end; gap: .7em; transition: opacity .9s, transform 1.1s var(--expo); }
.credit__role { font-size: clamp(12px, .85vw, 16px); opacity: .78; white-space: nowrap; }
.credit__brand { display: flex; align-items: center; gap: .5em; height: clamp(30px, 2.3vw, 44px); transition: opacity .3s, transform .5s var(--expo); }
.credit__brand img { display: block; height: 100%; width: auto; }
.credit__brand--pitius { font-family: var(--font-display); font-weight: 600; font-size: clamp(15px, 1.15vw, 22px); letter-spacing: -.05em; white-space: nowrap; }
.credit__brand:hover { opacity: .72; transform: translateY(-2px); }
.motion .contacts:not(.is-in) .credit { opacity: 0; transform: translateY(18px); }
.contacts.is-in .credit { transition-delay: .5s; }
.contacts.is-in .credit + .credit { transition-delay: .62s; }
@media (max-width: 1100px) {
  .credits { grid-column: 1 / -1; grid-row: 4; margin-top: 28px; }
}
@media (max-width: 860px) {
  .credits { grid-column: 1; grid-row: auto; margin-top: 0; justify-content: space-between; gap: 18px; }
}

/* ── The way to the floor plans: the one solid button on the page ── */
.plans-btn {
  display: inline-flex; align-items: center; gap: 1em;
  padding: .5em .5em .5em 1.3em;
  border-radius: 999px;
  background: var(--olive); color: var(--white);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(16px, 1.3vw, 25px);
  line-height: 1.15;
  letter-spacing: -.01em;
  box-shadow: 0 10px 28px rgba(28, 28, 28, .24);
  transition: background-color .3s, transform .5s var(--expo);
  will-change: transform;
}
.plans-btn:hover { background: var(--olive-dark); }
.plans-btn__arrow {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 2.3em; height: 2.3em;
  border-radius: 50%;
  background: var(--white); color: var(--olive);
  transition: transform .4s var(--expo);
}
.plans-btn__arrow svg { width: 55%; height: 55%; }
.plans-btn:hover .plans-btn__arrow { transform: translateX(3px); }
.plans-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* on the render, white stands out where olive would sink into the pines */
.plans-btn--light { background: var(--white); color: var(--ink); }
.plans-btn--light:hover { background: #ecebe5; }
.plans-btn--light .plans-btn__arrow { background: var(--olive); color: var(--white); }
.plans-btn--light:focus-visible { outline-color: var(--white); }

.hero__content { column-gap: 1.6vw; }
.hero__plans { margin-right: .9vw; transition: background-color .3s; } /* its transform follows the scroll, so no easing on that */
/* frosted glass over the render: the picture shows through instead of being covered by a white bar */
.hero__plans {
  background: rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(3px) saturate(1.1);
  backdrop-filter: blur(3px) saturate(1.1);
  /* a thin light rim draws the pill's edge now that the fill is almost clear */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 6px 22px rgba(28, 28, 28, .1);
  /* soft white halo keeps the dark label readable over the pines */
  text-shadow: 0 0 12px rgba(255, 255, 255, .95), 0 0 3px rgba(255, 255, 255, .7);
}
.hero__plans:hover { background: rgba(255, 255, 255, .7); }
.motion .hero__plans { opacity: 0; }
.motion.is-ready .hero__plans { opacity: 1; animation: plans-in 1.1s var(--expo) 1.05s backwards; }
@keyframes plans-in { from { opacity: 0; translate: 0 18px; } }

.plans-float {
  position: fixed; right: var(--pad); bottom: clamp(14px, 1.6vw, 30px); z-index: 45;
  font-size: clamp(15px, 1.1vw, 21px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .32);
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity .35s, visibility .35s, transform .6s var(--expo), background-color .3s;
}
.plans-float.is-on { opacity: 1; visibility: visible; transform: none; }

/* in the header: outlined over the render, solid once the header is */
.nav a.nav__plans {
  padding: 5px .95em; /* with the border, the 6px of the other links: the text stays on their line */
  border: 1px solid currentColor;
  border-radius: 999px;
}
.nav a.nav__plans::after { display: none; }
.nav a.nav__plans:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.is-solid .nav a.nav__plans { background: var(--olive); border-color: var(--olive); color: var(--white); }
.is-solid .nav a.nav__plans:hover { background: var(--olive-dark); border-color: var(--olive-dark); color: var(--white); }
@media (min-width: 861px) {
  .motion.is-ready .nav a.nav__plans {
    transition: opacity .9s, transform 1.1s var(--expo), background-color .3s, border-color .3s, color .3s;
    transition-delay: 1.04s, 1.04s, 0s, 0s, 0s;
  }
}

@media (max-width: 860px) {
  .plans-btn { font-size: clamp(16px, 4.4vw, 18px); gap: .6em; padding-left: 1.1em; }
  .hero__plans { grid-column: 1 / -1; margin-right: 0; justify-self: stretch; justify-content: space-between; }
  .gallery__head .plans-btn { align-self: stretch; justify-content: space-between; }
  .plans-float { left: var(--pad); justify-content: space-between; }
  /* the long floor-plans label stays on one line: it shrinks a little instead of breaking in two */
  .hero__plans, .gallery__head .plans-btn, .plans-float { font-size: clamp(13px, 3.75vw, 16px); white-space: nowrap; }
  .nav a.nav__plans, .is-solid .nav a.nav__plans { margin: 10px 0 0; padding: .3em .8em; background: var(--white); border-color: var(--white); color: var(--ink); }
}

/* ── Contacts: the request button and the privacy link ── */
.contacts__request { position: relative; margin-top: 1.5em; }
.contacts__request:focus-visible { outline-color: var(--white); }
.contacts__privacy {
  position: absolute; left: var(--pad); bottom: 1vw;
  font-size: clamp(12px, .85vw, 16px); opacity: .78;
  text-decoration: underline; text-underline-offset: 2px;
}
.contacts__privacy:hover { opacity: 1; }
@media (max-width: 860px) {
  .contacts__privacy { bottom: 18px; }
}

/* ── Picture viewer: only the picture itself, with the website softly blurred behind it ── */
.modal { width: fit-content; max-width: none; max-height: none; overflow: visible; }
.modal::backdrop {
  background: rgba(248, 248, 248, .12);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  animation: backdrop-in .45s ease-out;
}
.modal[open] { animation: none; }
.modal[open] .modal__body { animation: picture-in .6s var(--expo); }
.modal__body img {
  width: auto; height: auto;
  max-width: 92vw; max-height: 90vh;
  object-fit: initial;
  background: none;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .16);
}
.modal__close {
  position: fixed; right: clamp(14px, 2vw, 30px); top: clamp(14px, 2vw, 30px);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  font-size: 28px;
  transition: transform .4s var(--expo), background-color .25s;
}
.modal__close:hover { background: #fff; transform: rotate(90deg); }
@keyframes picture-in { from { opacity: 0; transform: translateY(26px) scale(.96); } }
@keyframes backdrop-in { from { opacity: 0; } }

/* ── Small screens ── */
@media (max-width: 860px) {
  .hero__slide img { --zz: 1; object-position: var(--op-m, 60% 100%); }
  /* the arrival render keeps its whole building and both pines on a phone: the picture stands above the hero text,
     its own sky (sampled from the render) carries on above it and its meadow below, both seams faded out */
  .hero__slide--whole { background: linear-gradient(180deg, #6d7f99 0%, #8496ae 30%, #8496ae 58%, #1f271b 82%, #161e15 100%); }
  .hero__slide--whole img {
    top: auto; bottom: 17%; height: 60%;
    object-position: 67% 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 88%, transparent 100%);
  }
  .map { aspect-ratio: 4 / 5; }
  .frame__s img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); }
  .stat::before { display: none; }
  .carousel { --w: 80cqw; --w-active: 80cqw; --gap: 2.5cqw; --h: 100cqw; }
  .contacts__text br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { position: relative; }
  .hero__dots.is-playing [aria-current="true"] i { animation: none; }
  .contacts__tree, .map__label i { animation: none; }
}

/* ── Phones, finishing touches ── */
@media (max-width: 345px) {
  .hero__plans, .gallery__head .plans-btn, .plans-float { white-space: normal; }
}
/* landscape phones and small tablets: the floating button is a pill on the right, not a full-width bar */
@media (min-width: 560px) and (max-width: 860px) {
  .plans-float { left: auto; }
}
/* a phone held sideways: the hero fits the screen with its title, the arrival render fills it as on a desktop,
   and the menu scrolls instead of running off the bottom */
@media (max-width: 860px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 320px; }
  .hero__title { font-size: min(15.4vw, 25svh); }
  .hero__content { row-gap: 12px; padding-bottom: 18px; }
  .hero__slide--whole { background: none; }
  .hero__slide--whole img { top: 0; bottom: 0; height: 100%; object-position: 60% 100%; -webkit-mask-image: none; mask-image: none; }
  .nav { justify-content: flex-start; gap: 10px; padding-top: 76px; font-size: 22px; }
}
