:root {
  color-scheme: dark;
  --forest-950: #0b100c;
  --forest-900: #101710;
  --sand-100: #f7f3ec;
  --sand-200: #e9dfd0;
  --ink: #152019;
  --sunset: #e7a15d;
  --aqua: #4b98a2;
  --story-progress: 0;
  --transition: 0;
  --structure-transition: 0;
  --structure-progress: 0;
  --location-progress: 0;
  --exit-progress: 0;
  --apartment-progress: 0;
  --apartment-entry: 0;
  --apartment-first: 1;
  --apartment-second: 0;
  --pointer-x: 0;
  --pointer-y: 0;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--forest-950);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--forest-950);
  color: var(--sand-100);
  font-family: "Cabin", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.story-stage {
  position: relative;
  height: 250svh;
}

.story-anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.story-anchor--start { top: 0; }
.story-anchor--location { top: 19%; }
.story-anchor--structure { top: 28%; }

.story {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: var(--forest-900);
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  contain: paint;
}

.hero__media,
.hero__veil,
.structure__media,
.structure__veil {
  position: absolute;
  inset: 0;
}

.scene--hero {
  z-index: 1;
  opacity: clamp(0, calc(1 - (var(--transition) * 1.08)), 1);
}

.hero__media {
  inset: -7%;
  z-index: -3;
  background-image: url("assets/hero-mobile.jpg");
  background-position: 54% center;
  background-size: cover;
  transform: translate3d(calc(var(--pointer-x) * 6px), calc(var(--pointer-y) * 5px), 0)
    scale(calc(1.1 + (var(--transition) * 0.34)));
  transform-origin: 54% 55%;
  filter: saturate(0.92);
  will-change: transform;
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 9, 6, 0.58) 0%, transparent 31%),
    linear-gradient(0deg, rgba(6, 10, 7, 0.86) 0%, rgba(6, 10, 7, 0.15) 60%),
    linear-gradient(90deg, rgba(6, 10, 7, 0.42), transparent 70%);
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem 0;
  opacity: clamp(0, calc(1 - (var(--transition) * 2)), 1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: clamp(10rem, 43vw, 12.5rem);
  height: auto;
  filter: drop-shadow(0 0.65rem 1.25rem rgba(0, 0, 0, 0.3));
}

.site-header__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: rgba(247, 243, 236, 0.78);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header__location span {
  width: 0.36rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sunset);
  box-shadow: 0 0 0 4px rgba(231, 161, 93, 0.14);
}

.hero__content {
  position: absolute;
  z-index: 2;
  left: 1.25rem;
  right: 1.25rem;
  bottom: max(5.8rem, calc(4.6rem + env(safe-area-inset-bottom)));
  max-width: 44rem;
  opacity: clamp(0, calc(1 - (var(--transition) * 2.2)), 1);
  transform: translate3d(0, calc(var(--transition) * -54px), 0);
  will-change: opacity, transform;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--sand-200);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  flex: 0 0 auto;
  background: var(--sunset);
}

.hero h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(3.45rem, 17vw, 8rem);
  font-weight: 600;
  line-height: 0.79;
  letter-spacing: -0.065em;
  text-wrap: balance;
  text-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.28);
}

.hero h1 span {
  color: var(--sand-200);
  font-weight: 400;
}

.hero__subtitle {
  max-width: 30rem;
  margin: 1.35rem 0 0;
  color: rgba(247, 243, 236, 0.78);
  font-size: clamp(0.94rem, 3.5vw, 1.1rem);
  line-height: 1.58;
}

.hero__cta {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-height: 3.65rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(247, 243, 236, 0.46);
  border-radius: 999px;
  background: rgba(14, 21, 15, 0.26);
  padding: 0.35rem 0.45rem 0.35rem 1.35rem;
  color: var(--sand-100);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 250ms ease, background 250ms ease, transform 250ms ease;
}

.hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sand-100);
  transform: translateX(-102%);
  transition: transform 420ms cubic-bezier(0.65, 0, 0.35, 1);
}

.hero__cta svg {
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sunset);
  padding: 0.85rem;
  stroke: var(--forest-950);
  stroke-width: 1.6;
  fill: none;
  transition: transform 300ms ease;
}

.hero__cta:focus-visible,
.scroll-cue:focus-visible {
  outline: 2px solid var(--sand-100);
  outline-offset: 4px;
}

.hero__cta:active { transform: scale(0.98); }

.scene--structure {
  z-index: 3;
  opacity: clamp(0, var(--structure-transition), 1);
  pointer-events: none;
}

.structure__media {
  inset: -7%;
  z-index: -3;
  background-image: url("assets/estrutura-mobile.jpg");
  background-position: 47% center;
  background-size: cover;
  transform: translate3d(calc(var(--pointer-x) * -5px), calc((var(--pointer-y) * -4px) + (var(--structure-progress) * -1.5%)), 0)
    scale(calc(1.38 - (var(--structure-transition) * 0.28) + (var(--structure-progress) * 0.035) + (var(--exit-progress) * 0.16)));
  transform-origin: 52% 58%;
  filter: saturate(0.82);
  will-change: transform;
}

.structure__veil {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 17, 20, 0.82) 0%, rgba(8, 17, 20, 0.12) 45%),
    linear-gradient(0deg, rgba(8, 17, 20, 0.8) 0%, transparent 52%),
    linear-gradient(90deg, rgba(8, 17, 20, 0.28), transparent 70%);
}

.structure__content {
  position: absolute;
  inset: max(4.6rem, calc(3.8rem + env(safe-area-inset-top))) 1rem max(1rem, env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: clamp(0, calc(((var(--structure-transition) - 0.38) * 1.7) - (var(--exit-progress) * 2)), 1);
  transform: translate3d(0, calc((1 - var(--structure-transition)) * 42px), 0);
  will-change: opacity, transform;
}

.structure__heading {
  max-width: 38rem;
}

.structure__heading .eyebrow {
  margin-bottom: 0.75rem;
  color: rgba(247, 243, 236, 0.84);
}

.structure h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.05rem, 9.2vw, 5.6rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.28);
}

.structure h2 span {
  color: var(--sand-200);
  font-weight: 400;
}

.structure__intro {
  max-width: 34rem;
  margin: 0.85rem 0 0;
  color: rgba(247, 243, 236, 0.8);
  font-size: clamp(0.82rem, 3vw, 1rem);
  line-height: 1.45;
}

.feature-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  width: 100%;
  max-width: 43rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-cloud li {
  --reveal: clamp(0, calc((var(--structure-progress) - var(--delay, 0)) * 7), 1);
  min-width: 0;
  opacity: var(--reveal);
  transform: translate3d(0, calc((1 - var(--reveal)) * 24px), 0);
  will-change: opacity, transform;
}

.feature-cloud li > span {
  display: flex;
  min-height: 2.65rem;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.8rem 2.4rem rgba(4, 13, 15, 0.16);
  padding: 0.62rem 0.8rem;
  color: var(--ink);
  font-size: clamp(0.73rem, 3vw, 0.88rem);
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
  backdrop-filter: blur(12px);
  animation: float-bubble 4.8s ease-in-out infinite alternate;
}

.feature-cloud strong {
  font-size: 1.04em;
  font-weight: 700;
}

.feature-cloud small {
  margin-top: 0.15rem;
  color: rgba(21, 32, 25, 0.66);
  font-size: 0.78em;
  font-weight: 500;
  line-height: 1.2;
}

.feature-cloud__wide,
.feature-cloud__solo,
.feature-cloud__cost {
  grid-column: span 2;
}

.feature-cloud__cost > span {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: #2f6033 !important;
  padding-left: 1rem !important;
  color: #fff;
  box-shadow: 0 1rem 2.8rem rgba(18, 58, 22, 0.34) !important;
}

.feature-cloud__cost > span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.3rem;
  background: rgba(255, 255, 255, 0.78);
}

.feature-cloud__cost strong {
  color: #fff;
  font-size: 1.18rem;
}

.feature-cloud__cost small {
  color: rgba(255, 255, 255, 0.82);
}

.feature-cloud li:nth-child(1) { --delay: 0; }
.feature-cloud li:nth-child(2) { --delay: 0.035; }
.feature-cloud li:nth-child(3) { --delay: 0.07; }
.feature-cloud li:nth-child(4) { --delay: 0.105; }
.feature-cloud li:nth-child(5) { --delay: 0.14; }
.feature-cloud li:nth-child(6) { --delay: 0.175; }
.feature-cloud li:nth-child(7) { --delay: 0.21; }
.feature-cloud li:nth-child(8) { --delay: 0.245; }
.feature-cloud li:nth-child(9) { --delay: 0.28; }

.feature-cloud li:nth-child(2n) > span { animation-delay: -1.4s; }
.feature-cloud li:nth-child(3n) > span { animation-delay: -2.7s; }

@keyframes float-bubble {
  from { transform: translate3d(0, -1px, 0); }
  to { transform: translate3d(0, 1.5px, 0); }
}

.scene--location {
  z-index: 2;
  opacity: clamp(0, calc(var(--transition) - (var(--structure-transition) * 1.08)), 1);
  pointer-events: none;
}

.story.is-location-active .scene--location {
  pointer-events: auto;
}

.location__video,
.location__veil {
  position: absolute;
  inset: 0;
}

.location__video {
  inset: -7%;
  z-index: -3;
  width: 114%;
  height: 114%;
  object-fit: cover;
  transform: translate3d(calc(var(--pointer-x) * 5px), calc((var(--pointer-y) * 4px) + (var(--location-progress) * -1.2%)), 0)
    scale(calc(1.34 - (var(--transition) * 0.24) + (var(--location-progress) * 0.035) + (var(--structure-transition) * 0.25)));
  transform-origin: 50% 52%;
  filter: saturate(0.78);
  will-change: transform;
}

.location__veil {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(9, 22, 13, 0.83) 0%, rgba(9, 22, 13, 0.22) 45%),
    linear-gradient(0deg, rgba(9, 22, 13, 0.76) 0%, transparent 56%),
    linear-gradient(90deg, rgba(9, 22, 13, 0.4), transparent 72%);
}

.location__content {
  position: absolute;
  inset: max(4.4rem, calc(3.7rem + env(safe-area-inset-top))) 1rem max(0.9rem, env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  flex-direction: column;
  opacity: clamp(0, calc(((var(--transition) - 0.34) * 1.55) - (var(--structure-transition) * 2)), 1);
  transform: translate3d(0, calc((1 - var(--transition)) * 44px), 0);
  will-change: opacity, transform;
}

.location__copy {
  flex: 0 0 auto;
}

.location__copy .eyebrow {
  margin-bottom: 0.65rem;
}

.location h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 5.7rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.28);
}

.location h2 span {
  color: var(--sand-200);
  font-weight: 400;
}

.location__intro {
  max-width: 36rem;
  margin: 0.75rem 0 0;
  color: rgba(247, 243, 236, 0.82);
  font-size: clamp(0.78rem, 2.8vw, 0.98rem);
  line-height: 1.42;
}

.location__references {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.location__references li {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.85rem;
  background: rgba(10, 36, 18, 0.46);
  padding: 0.55rem 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.65rem, 2.5vw, 0.78rem);
  font-weight: 500;
  line-height: 1.18;
  backdrop-filter: blur(10px);
}

.map-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  flex: 1 1 auto;
  min-height: 12.5rem;
  max-height: 36svh;
  margin-top: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1.3rem 3.8rem rgba(3, 13, 6, 0.28);
  color: var(--ink);
}

.map-card__topline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.68rem 0.85rem;
}

.map-card__pin {
  position: relative;
  width: 1.9rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50% 50% 50% 0;
  background: #2f6033;
  transform: rotate(-45deg) scale(0.72);
}

.map-card__pin::after {
  content: "";
  position: absolute;
  inset: 31%;
  border-radius: 50%;
  background: #fff;
}

.map-card__topline p {
  display: flex;
  flex-direction: column;
  margin: 0;
  line-height: 1.1;
}

.map-card__topline strong {
  font-size: 0.84rem;
}

.map-card__topline small {
  margin-top: 0.18rem;
  color: rgba(21, 32, 25, 0.58);
  font-size: 0.68rem;
}

.map-card__frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-block: 1px solid rgba(21, 32, 25, 0.1);
  background: #d8dfd8;
}

.map-card__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  border: 0;
}

.map-card__link {
  display: flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #2f6033;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.map-card__link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 220ms ease;
}

.map-card__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.scroll-cue {
  position: absolute;
  z-index: 6;
  right: 1.25rem;
  bottom: max(1.45rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(247, 243, 236, 0.7);
  text-decoration: none;
  opacity: clamp(0, calc(1 - (var(--transition) * 2)), 1);
}

.scroll-cue__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-cue__track {
  position: relative;
  width: 3.5rem;
  height: 1px;
  overflow: hidden;
  background: rgba(247, 243, 236, 0.25);
}

.scroll-cue__fill {
  position: absolute;
  inset: 0;
  background: var(--sand-100);
  transform: scaleX(max(0.08, var(--story-progress)));
  transform-origin: left;
}

.story__counter { display: none; }

.apartment-stage {
  position: relative;
  height: 250svh;
  background: var(--forest-950);
}

.apartment-anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.apartment-anchor--space { top: 0; }
.apartment-anchor--garden { top: 50%; }

.apartment-story {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: var(--forest-950);
  contain: paint;
}

.apartment-story__video,
.apartment-story__veil {
  position: absolute;
  inset: 0;
}

.apartment-story__video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.02);
  transform: scale(calc(1.14 - (var(--apartment-entry) * 0.105) + (var(--apartment-progress) * 0.025)));
  will-change: transform;
}

.apartment-story__veil {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 13, 9, 0.46) 0%, transparent 34%),
    linear-gradient(0deg, rgba(7, 13, 9, 0.88) 0%, rgba(7, 13, 9, 0.18) 70%),
    linear-gradient(90deg, rgba(7, 13, 9, 0.38), transparent 78%);
  pointer-events: none;
}

.apartment-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: max(5rem, calc(4.2rem + env(safe-area-inset-top))) 1.25rem
    max(5.4rem, calc(4.5rem + env(safe-area-inset-bottom)));
  pointer-events: none;
}

.apartment-panel--space {
  opacity: var(--apartment-first);
  transform: translate3d(0, calc((1 - var(--apartment-first)) * -34px), 0);
}

.apartment-panel--garden {
  opacity: var(--apartment-second);
  transform: translate3d(0, calc((1 - var(--apartment-second)) * 34px), 0);
}

.apartment-panel__copy {
  width: 100%;
  max-width: 42rem;
}

.apartment-panel .eyebrow {
  margin-bottom: 0.75rem;
  color: rgba(247, 243, 236, 0.86);
}

.apartment-panel h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.75rem, 13vw, 7rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 1rem 2.8rem rgba(0, 0, 0, 0.42);
}

.apartment-panel h2 span {
  color: var(--sand-200);
  font-weight: 400;
}

.apartment-panel__intro {
  max-width: 35rem;
  margin: 1rem 0 0;
  color: rgba(247, 243, 236, 0.84);
  font-size: clamp(0.88rem, 3.5vw, 1.08rem);
  line-height: 1.5;
  text-shadow: 0 0.4rem 1.4rem rgba(0, 0, 0, 0.45);
}

.apartment-facts {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.apartment-facts p {
  display: flex;
  min-width: 0;
  min-height: 4.6rem;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  backdrop-filter: blur(12px);
  box-shadow: 0 1rem 2.6rem rgba(4, 12, 7, 0.22);
}

.apartment-facts strong {
  color: #2f6033;
  font-size: clamp(1.25rem, 5.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
}

.apartment-facts span {
  margin-top: 0.28rem;
  color: rgba(21, 32, 25, 0.7);
  font-size: clamp(0.64rem, 2.5vw, 0.76rem);
  font-weight: 500;
  line-height: 1.2;
}

.apartment-facts p:nth-child(2) strong {
  margin-top: 0.3rem;
}

.apartment-facts p:nth-child(2) span {
  margin-top: 0;
}

.apartment-life {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.apartment-life li {
  display: flex;
  min-height: 3.1rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(47, 96, 51, 0.88);
  padding: 0.62rem 0.85rem;
  color: #fff;
  font-size: clamp(0.68rem, 2.8vw, 0.84rem);
  font-weight: 600;
  line-height: 1.16;
  backdrop-filter: blur(10px);
  box-shadow: 0 0.8rem 2rem rgba(8, 27, 10, 0.2);
}

.apartment-scroll {
  position: absolute;
  z-index: 4;
  right: 1.25rem;
  bottom: max(1.35rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(247, 243, 236, 0.7);
}

.apartment-scroll > span:first-child {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.apartment-scroll__track {
  position: relative;
  width: 3.25rem;
  height: 1px;
  overflow: hidden;
  background: rgba(247, 243, 236, 0.25);
}

.apartment-scroll__track span {
  position: absolute;
  inset: 0;
  background: var(--sand-100);
  transform: scaleX(max(0.06, var(--apartment-progress)));
  transform-origin: left;
}

.apartment-story__counter { display: none; }

.contact-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--forest-950);
  color: var(--sand-100);
  content-visibility: auto;
  contain-intrinsic-size: auto 100svh;
}

.contact-section__media,
.contact-section__veil {
  position: absolute;
  inset: 0;
}

.contact-section__media {
  inset: -2%;
  z-index: 0;
  background-image: url("assets/contato-mobile.jpg");
  background-position: 57% center;
  background-size: cover;
  transform: scale(1.04);
}

.contact-section__veil {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 14, 9, 0.7) 0%, rgba(7, 14, 9, 0.18) 36%, rgba(7, 14, 9, 0.82) 100%),
    linear-gradient(90deg, rgba(7, 14, 9, 0.54), rgba(7, 14, 9, 0.12));
}

.contact-section__layout {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 82rem);
  min-height: 100svh;
  align-content: center;
  gap: 2rem;
  margin: 0 auto;
  padding: max(4.5rem, calc(3.7rem + env(safe-area-inset-top))) 1.25rem
    max(2rem, calc(1.4rem + env(safe-area-inset-bottom)));
}

.contact-section__heading {
  max-width: 43rem;
  text-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}

.contact-section__heading .eyebrow {
  color: rgba(247, 243, 236, 0.86);
}

.contact-section__heading h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 13vw, 7rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.contact-section__heading h2 span {
  color: var(--sand-200);
  font-weight: 400;
}

.contact-section__heading > p:last-child {
  max-width: 36rem;
  margin: 1.1rem 0 0;
  color: rgba(247, 243, 236, 0.82);
  font-size: clamp(0.88rem, 3.3vw, 1.05rem);
  line-height: 1.52;
}

.lead-form {
  display: grid;
  gap: 0.95rem;
  width: 100%;
  max-width: 39rem;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 1.5rem;
  background: rgba(250, 249, 245, 0.94);
  box-shadow: 0 1.5rem 4rem rgba(3, 12, 6, 0.32);
  padding: 1.2rem;
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.lead-form__heading {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.15rem;
}

.lead-form__heading p {
  margin: 0;
  color: #2f6033;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead-form__heading span {
  margin-top: 0.2rem;
  color: rgba(21, 32, 25, 0.62);
  font-size: 0.76rem;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lead-form__row {
  display: grid;
  gap: 0.95rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.form-field > span:first-child {
  color: #183b1d;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 3.35rem;
  border: 1px solid rgba(47, 96, 51, 0.28);
  border-radius: 1rem;
  outline: 0;
  background: rgba(255, 255, 255, 0.76);
  padding: 0.78rem 0.95rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field input::placeholder {
  color: rgba(21, 32, 25, 0.42);
}

.form-field input:focus,
.form-field select:focus {
  border-color: #2f6033;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 96, 51, 0.12);
}

.select-control {
  position: relative;
  display: block;
}

.select-control::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.05rem;
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid #2f6033;
  border-bottom: 2px solid #2f6033;
  pointer-events: none;
  transform: translateY(-68%) rotate(45deg);
}

.form-field select {
  appearance: none;
  padding-right: 2.8rem;
  cursor: pointer;
}

.lead-form__submit {
  display: flex;
  width: 100%;
  min-height: 3.65rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-radius: 999px;
  background: #2f6033;
  padding: 0.38rem 0.42rem 0.38rem 1.2rem;
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, opacity 200ms ease;
}

.lead-form__submit svg {
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  padding: 0.84rem;
  fill: none;
  stroke: #2f6033;
  stroke-width: 1.7;
  transition: transform 220ms ease;
}

.lead-form__submit:focus-visible {
  outline: 3px solid rgba(47, 96, 51, 0.24);
  outline-offset: 3px;
}

.lead-form__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.lead-form__note,
.lead-form__status {
  margin: -0.2rem 0 0;
  color: rgba(21, 32, 25, 0.56);
  font-size: 0.66rem;
  line-height: 1.35;
  text-align: center;
}

.lead-form__status:empty { display: none; }

.lead-form__status.is-error {
  color: #8f2f2f;
  font-weight: 600;
}

@media (min-width: 560px) {
  .lead-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .contact-section__media {
    background-image: url("assets/contato-desktop.jpg");
    background-position: center 54%;
  }

  .contact-section__veil {
    background:
      linear-gradient(0deg, rgba(7, 14, 9, 0.62) 0%, transparent 62%),
      linear-gradient(90deg, rgba(7, 14, 9, 0.82) 0%, rgba(7, 14, 9, 0.3) 52%, rgba(7, 14, 9, 0.48) 100%);
  }

  .contact-section__layout {
    grid-template-columns: minmax(23rem, 0.9fr) minmax(30rem, 1.1fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 8rem);
    padding: clamp(5rem, 10vh, 8rem) clamp(2rem, 7vw, 7rem);
  }

  .contact-section__heading h2 {
    font-size: clamp(4.5rem, 6.7vw, 7.2rem);
  }

  .contact-section__heading > p:last-child {
    margin-top: 1.45rem;
    font-size: 1.05rem;
    line-height: 1.62;
  }

  .lead-form {
    max-width: 42rem;
    margin-left: auto;
    border-radius: 1.8rem;
    padding: clamp(1.35rem, 2.4vw, 2rem);
  }
}

@media (max-height: 670px) {
  .structure__content {
    top: 4rem;
  }

  .structure h2 { font-size: clamp(1.75rem, 7.8vw, 3rem); }
  .structure__intro { margin-top: 0.5rem; font-size: 0.76rem; }
  .feature-cloud { gap: 0.3rem; margin-top: 0.55rem; }
  .feature-cloud li > span { min-height: 2.2rem; padding: 0.45rem 0.7rem; font-size: 0.68rem; }

  .location__content { top: 4rem; }
  .location h2 { font-size: clamp(1.8rem, 7.8vw, 2.8rem); }
  .location__intro { margin-top: 0.45rem; font-size: 0.72rem; }
  .location__references { gap: 0.3rem; margin-top: 0.55rem; }
  .location__references li { min-height: 2.1rem; padding: 0.4rem 0.55rem; font-size: 0.62rem; }
  .map-card { min-height: 9.8rem; max-height: 29svh; margin-top: 0.55rem; }
  .map-card__topline { padding-block: 0.48rem; }
  .map-card__link { min-height: 2.35rem; }

  .apartment-panel {
    padding-top: 4rem;
    padding-bottom: 4.35rem;
  }

  .apartment-panel h2 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .apartment-panel__intro { margin-top: 0.65rem; font-size: 0.78rem; }
  .apartment-facts,
  .apartment-life { margin-top: 0.75rem; }
  .apartment-facts p { min-height: 3.8rem; padding-block: 0.58rem; }
  .apartment-life li { min-height: 2.55rem; }
}

@media (hover: hover) and (pointer: fine) {
  .hero__cta:hover {
    border-color: var(--sand-100);
    color: var(--forest-950);
  }

  .hero__cta:hover::before { transform: translateX(0); }
  .hero__cta:hover svg { transform: rotate(-45deg); }

  .feature-cloud li > span {
    transition: box-shadow 250ms ease, background 250ms ease;
  }

  .feature-cloud li > span:hover {
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(4, 13, 15, 0.28);
  }

  .map-card__link:hover svg { transform: translateX(0.25rem); }

  .lead-form__submit:hover {
    background: #244e29;
  }

  .lead-form__submit:hover svg { transform: translateX(0.22rem); }
}

@media (min-width: 700px) {
  .story-stage { height: 340vh; }
  .apartment-stage { height: 260vh; }
  .site-header { padding: 2rem clamp(2rem, 5vw, 5rem) 0; }
  .brand__logo { width: clamp(12rem, 17vw, 15rem); }
  .site-header__location { font-size: 0.72rem; }

  .hero__media {
    background-image: url("assets/hero-desktop.jpg");
    background-position: center 52%;
    transform-origin: 62% 50%;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(5, 9, 6, 0.48) 0%, transparent 34%),
      linear-gradient(0deg, rgba(6, 10, 7, 0.78) 0%, transparent 65%),
      linear-gradient(90deg, rgba(6, 10, 7, 0.66), transparent 66%);
  }

  .hero__content {
    left: clamp(2rem, 8vw, 8rem);
    right: auto;
    bottom: clamp(3rem, 8vh, 6rem);
    max-width: 46rem;
  }

  .hero h1 { font-size: clamp(5.4rem, 9.5vw, 8.5rem); }
  .hero__subtitle { margin-top: 1.75rem; }

  .hero__cta {
    width: auto;
    min-width: 20.5rem;
    margin-top: 2rem;
  }

  .structure__media {
    background-image: url("assets/estrutura-desktop.jpg");
    background-position: center 54%;
    transform-origin: 68% 56%;
  }

  .structure__veil {
    background:
      linear-gradient(90deg, rgba(7, 16, 18, 0.78) 0%, rgba(7, 16, 18, 0.12) 62%),
      linear-gradient(0deg, rgba(7, 16, 18, 0.48), transparent 56%);
  }

  .location__video { transform-origin: 62% 50%; }

  .scroll-cue {
    right: clamp(2rem, 5vw, 5rem);
    bottom: 2.75rem;
  }

  .story__counter {
    position: absolute;
    z-index: 7;
    top: 50%;
    right: clamp(2rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    color: rgba(247, 243, 236, 0.68);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    transform: translateY(-50%);
  }

  .story__counter-line {
    width: 1px;
    height: 4.5rem;
    background: linear-gradient(to bottom, var(--sand-100) calc(var(--story-progress) * 100%), rgba(247, 243, 236, 0.2) calc(var(--story-progress) * 100%));
  }

  .apartment-panel {
    padding: clamp(5rem, 10vh, 7rem) clamp(2rem, 8vw, 8rem) clamp(4rem, 9vh, 7rem);
  }

  .apartment-panel h2 { font-size: clamp(4.5rem, 8vw, 7.5rem); }

  .apartment-facts {
    width: min(100%, 38rem);
    gap: 0.75rem;
  }

  .apartment-facts p {
    min-height: 5.4rem;
    border-radius: 1.3rem;
    padding: 0.9rem 1.1rem;
  }

  .apartment-life {
    width: min(100%, 42rem);
    gap: 0.65rem;
  }

  .apartment-life li {
    min-height: 3.65rem;
    padding-inline: 1.2rem;
    font-size: 0.86rem;
  }

  .apartment-scroll {
    right: clamp(2rem, 5vw, 5rem);
    bottom: 2.75rem;
  }

  .apartment-story__counter {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: clamp(2rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    color: rgba(247, 243, 236, 0.68);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    transform: translateY(-50%);
  }

  .apartment-story__counter > span:nth-child(2) {
    width: 1px;
    height: 4.5rem;
    background: linear-gradient(to bottom, var(--sand-100) calc(var(--apartment-progress) * 100%), rgba(247, 243, 236, 0.2) calc(var(--apartment-progress) * 100%));
  }
}

@media (min-width: 1000px) {
  .structure__content {
    inset: clamp(5rem, 10vh, 7rem) clamp(2rem, 8vw, 8rem) clamp(2.5rem, 6vh, 4.5rem);
    display: grid;
    grid-template-columns: minmax(18rem, 0.82fr) minmax(32rem, 1.18fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 7rem);
  }

  .structure h2 { font-size: clamp(3.8rem, 6.2vw, 6.6rem); }

  .structure__intro {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .feature-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.55rem, 0.8vw, 0.85rem);
    margin: 0;
  }

  .feature-cloud li > span {
    min-height: 4.25rem;
    border-radius: 1.2rem;
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
  }

  .feature-cloud__wide { grid-column: span 2; }
  .feature-cloud__solo { grid-column: span 1; }
  .feature-cloud__cost { grid-column: span 3; }

  .feature-cloud__cost > span {
    min-height: 5.4rem;
    align-items: center;
    text-align: center;
  }

  .feature-cloud__cost strong { font-size: 1.45rem; }

  .location__content {
    inset: clamp(5rem, 9vh, 6.5rem) clamp(2rem, 7vw, 7rem) clamp(2.5rem, 5vh, 4rem);
    display: grid;
    grid-template-columns: minmax(20rem, 0.82fr) minmax(30rem, 1.18fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 7rem);
  }

  .location h2 { font-size: clamp(4rem, 6.4vw, 6.8rem); }

  .location__intro {
    margin-top: 1.3rem;
    font-size: 1.04rem;
    line-height: 1.58;
  }

  .location__references {
    gap: 0.6rem;
    margin-top: 1.25rem;
  }

  .location__references li {
    min-height: 3.8rem;
    border-radius: 1rem;
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
  }

  .map-card {
    width: 100%;
    min-height: 29rem;
    max-height: min(67vh, 40rem);
    margin: 0;
    border-radius: 1.75rem;
  }

  .map-card__topline { padding: 0.95rem 1.1rem; }
  .map-card__topline strong { font-size: 0.95rem; }
  .map-card__topline small { font-size: 0.74rem; }
  .map-card__link { min-height: 3.35rem; padding-inline: 1.1rem; font-size: 0.76rem; }

  .apartment-story__veil {
    background:
      linear-gradient(180deg, rgba(7, 13, 9, 0.38) 0%, transparent 36%),
      linear-gradient(0deg, rgba(7, 13, 9, 0.7) 0%, transparent 64%),
      linear-gradient(90deg, rgba(7, 13, 9, 0.72) 0%, transparent 56%, rgba(7, 13, 9, 0.54) 100%);
  }

  .apartment-panel__copy { max-width: 48rem; }

  .apartment-panel--garden .apartment-panel__copy {
    max-width: 50rem;
    margin-left: auto;
  }

  .apartment-panel__intro {
    margin-top: 1.35rem;
    font-size: 1.08rem;
    line-height: 1.58;
  }
}

@media (max-width: 699px) {
  .hero__media {
    inset: -4%;
    filter: none;
    transform: translate3d(0, 0, 0) scale(calc(1.06 + (var(--transition) * 0.14)));
  }

  .location__video {
    inset: -3%;
    width: 106%;
    height: 106%;
    filter: none;
    transform: translate3d(0, calc(var(--location-progress) * -0.6%), 0)
      scale(calc(1.16 - (var(--transition) * 0.08) + (var(--location-progress) * 0.015)));
  }

  .structure__media,
  .apartment-story__video { filter: none; }

  .scene--hero,
  .scene--location,
  .scene--structure,
  .hero__media,
  .hero__content,
  .location__video,
  .location__content,
  .structure__media,
  .structure__content,
  .apartment-story__video,
  .apartment-panel,
  .feature-cloud li {
    will-change: auto;
  }

  .story.is-hero-active .scene--hero { will-change: opacity; }
  .story.is-hero-active .hero__media { will-change: transform; }
  .story.is-hero-active .hero__content { will-change: opacity, transform; }
  .story.is-location-rendering .scene--location { will-change: opacity; }
  .story.is-location-rendering .location__video { will-change: transform; }
  .story.is-location-rendering .location__content { will-change: opacity, transform; }
  .story.is-structure-active .scene--structure { will-change: opacity; }
  .story.is-structure-active .structure__media { will-change: transform; }
  .story.is-structure-active .structure__content { will-change: opacity, transform; }
  .apartment-stage.is-active .apartment-story__video { will-change: transform; }
  .apartment-stage.is-active .apartment-panel { will-change: opacity, transform; }

  .scene--hero,
  .scene--location,
  .hero__media,
  .location__video {
    backface-visibility: hidden;
  }

  .feature-cloud li > span { animation: none; }

  .hero__cta,
  .feature-cloud li > span,
  .location__references li,
  .map-card,
  .apartment-facts p,
  .apartment-life li,
  .lead-form {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media,
  .structure__media,
  .location__video,
  .apartment-story__video,
  .contact-section__media,
  .hero__content,
  .structure__content,
  .location__content,
  .apartment-panel,
  .feature-cloud li { transform: none; }
  .structure__media { filter: saturate(0.82); }
  .location__video { filter: saturate(0.78); }
  .feature-cloud li > span { animation: none; }
  .hero__cta,
  .hero__cta::before,
  .hero__cta svg,
  .lead-form__submit,
  .lead-form__submit svg { transition: none; }
}
