.home-page {
  overflow: clip;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.home-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 28s var(--ease) infinite alternate;
}

.home-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 28, 44, 0.28) 0%, rgba(5, 28, 44, 0.18) 38%, rgba(5, 28, 44, 0.42) 100%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--site-w), calc(100% - 48px));
  text-align: center;
  padding-top: 48px;
}

.home-hero-title {
  font-family: var(--serif);
  font-size: clamp(36px, 3.6vw, 64px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 1.1s var(--ease) 0.25s forwards;
}

.home-hero-lock {
  white-space: nowrap;
}

.hero-search {
  display: flex;
  align-items: center;
  width: min(640px, 100%);
  height: 64px;
  margin: 36px auto 0;
  padding: 6px;
  background: #fff;
  border-radius: 999px;
  color: var(--navy);
  overflow: visible;
  box-shadow: 0 18px 50px rgba(5, 28, 44, 0.18);
  opacity: 0;
  transform: translateY(22px);
  animation: riseIn 1s var(--ease) 0.55s forwards;
}

.hero-search-type {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 148px;
  height: 100%;
}

.hero-search-type::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(45deg);
  pointer-events: none;
}

.hero-search-type::after {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}

.hero-search-type select {
  width: 100%;
  height: 100%;
  padding: 0 36px 0 20px;
  border: 0;
  background: transparent;
  appearance: none;
  font-size: var(--text-nav);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
}

.hero-search-query {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
  min-width: 0;
}

.hero-search-query input {
  width: 100%;
  height: 100%;
  padding: 0 12px 0 16px;
  border: 0;
  background: transparent;
  outline: none;
  line-height: 1;
  appearance: none;
}

.hero-suggest {
  position: absolute;
  left: 0;
  right: 8px;
  top: calc(100% + 14px);
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  color: var(--navy);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(5, 28, 44, 0.14);
  text-align: left;
  overflow: hidden;
}

.hero-suggest a {
  display: block;
  padding: 10px 16px;
  font-size: var(--text-meta);
}

.hero-suggest a:hover {
  background: var(--cream);
}

.hero-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero-search-submit svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
}

.hero-search-submit:hover {
  background: var(--gold-soft);
  transform: scale(1.04);
}

.home-hero-ctas {
  position: absolute;
  left: 36px;
  bottom: 36px;
  z-index: 2;
  display: flex;
  gap: 22px;
  font-size: var(--text-btn);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero-ctas a {
  position: relative;
}

.home-hero-ctas a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

.home-hero-ctas a:hover::after {
  transform: scaleX(1);
}

.home-portfolio {
  padding: 96px 0 40px;
  background: var(--paper);
}

.home-portfolio .section-kicker,
.home-portfolio .section-title,
.portfolio-tabs {
  text-align: center;
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin: 28px 0 48px;
}

.portfolio-tabs button {
  position: relative;
  padding-bottom: 8px;
  font-size: var(--text-nav);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.portfolio-tabs button.is-active,
.portfolio-tabs button:hover {
  color: var(--navy);
}

.portfolio-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.property-card {
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 0.8s var(--ease) forwards;
}

.property-card:nth-child(1) { animation-delay: 0.05s; }
.property-card:nth-child(2) { animation-delay: 0.12s; }
.property-card:nth-child(3) { animation-delay: 0.19s; }
.property-card:nth-child(4) { animation-delay: 0.26s; }
.property-card:nth-child(5) { animation-delay: 0.33s; }
.property-card:nth-child(6) { animation-delay: 0.4s; }
.property-card:nth-child(n+7) { animation-delay: 0.45s; }

.property-card.is-hidden {
  display: none;
}

.property-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #1a1a1a;
}

.property-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.property-card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 28, 44, 0.42);
  color: #fff;
  font-size: var(--text-btn);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.property-card-media:hover img {
  transform: scale(1.06);
}

.property-card-media:hover .property-card-hover {
  opacity: 1;
}

.property-card-body {
  padding-top: 16px;
}

.property-card-body h3 {
  font-family: var(--serif);
  font-size: var(--text-card);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.property-card-place,
.property-card-meta {
  margin-top: 6px;
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.property-card-place {
  white-space: nowrap;
}

.property-card-price {
  margin-top: 8px;
  font-size: var(--text-price);
}

.property-card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: var(--text-btn);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.home-developments {
  padding: 72px 0 20px;
}

.home-neighborhoods {
  padding: 48px 0 20px;
}

.peak-carousel {
  overflow: hidden;
}

.peak-viewport {
  overflow: hidden;
}

.peak-track {
  display: flex;
  will-change: transform;
  transition: transform 0.85s var(--ease);
}

.peak-slide {
  flex: 0 0 76.8%;
  padding: 0 12px;
}

.home-developments .peak-slide a {
  display: block;
}

.peak-slide img {
  width: 100%;
  height: 548px;
  object-fit: cover;
}

.peak-slide h3 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: var(--text-slide);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.peak-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
}

.peak-arrows {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 32px;
}

.peak-prev,
.peak-next {
  width: 110px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.peak-prev svg,
.peak-next svg {
  width: 22px;
  height: 22px;
  margin: 12px auto;
}

.area-slide {
  flex: 0 0 33.333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 240px;
  padding: 48px 24px 32px;
}

.area-slide + .area-slide {
  border-left: 1px solid var(--line);
}

.area-slide h3 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 40px;
  margin-top: 0;
  margin-bottom: 0;
  white-space: nowrap;
}

.area-slide .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin-top: 28px;
  line-height: 1;
  padding-top: 2px;
}

.peak-prev:hover,
.peak-next:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.home-contact {
  padding: 88px 0 120px;
}

.home-contact .section-title {
  text-align: center;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  to {
    transform: scale(1.1) translate3d(0, -1.5%, 0);
  }
}
