/* Homepage experience — scoped to avoid affecting the rest of the public site. */
body.home-page {
  --home-ink: #161815;
  --home-paper: var(--neutral-050);
  --home-accent: #722a35;
  --home-line: rgba(255, 255, 255, 0.22);
  background: var(--home-paper);
}

body.home-page:has(.home-intro:not(.is-complete)) {
  overflow: hidden;
}

.home-intro {
  position: fixed;
  z-index: 1090;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.16), transparent 24%),
    repeating-linear-gradient(165deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 13px),
    linear-gradient(145deg, #853945, #722a35 62%, #571d26);
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: top left;
  transition:
    transform 1.15s cubic-bezier(0.76, 0, 0.24, 1),
    opacity 0.18s linear 1.02s,
    box-shadow 0.9s ease;
  will-change: transform, opacity;
}

.home-intro__logo {
  width: min(470px, 74vw);
  opacity: 0;
  transform: scale(0.88);
  animation: home-logo-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.home-intro.is-leaving {
  opacity: 0;
  box-shadow: 0 30px 80px rgba(17, 8, 10, 0.3);
  transform:
    translate3d(var(--intro-target-x, 50vw), var(--intro-target-y, 25vh), 0)
    scale(var(--intro-target-scale-x, 0.18), var(--intro-target-scale-y, 0.36));
}

.home-intro.is-leaving .home-intro__logo {
  animation: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.home-intro.is-complete {
  display: none;
  pointer-events: none;
}



@keyframes home-logo-in {
  to { opacity: 1; transform: scale(1); }
}

.as-home-hero {
  position: relative;
  min-height: max(720px, 100svh);
  overflow: hidden;
  color: #fff;
  background: #252927;
  isolation: isolate;
}

.as-home-hero__media,
.as-home-hero__shade,
.as-home-hero__grid {
  position: absolute;
  inset: 0;
}

.as-home-hero__media {
  z-index: -4;
  background: url('../img/home/daylight-partners-hero.jpg') center center / cover no-repeat;
  transform: scale(1.07);
  animation: home-hero-settle 1.8s cubic-bezier(0.22, 1, 0.36, 1) 1.55s both;
  will-change: transform;
}

.property-catalog-hero__media { background: none; }

.property-catalog-hero__media picture,
.property-catalog-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.property-catalog-hero__media img {
  object-fit: cover;
  object-position: center center;
}

.as-home-hero__shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(11, 13, 12, 0.42) 0%, rgba(11, 13, 12, 0.18) 49%, rgba(11, 13, 12, 0.04) 100%),
    linear-gradient(0deg, rgba(8, 10, 9, 0.38) 0%, transparent 52%, rgba(8, 10, 9, 0.08) 100%);
}

.as-home-hero__grid {
  z-index: -2;
  background-image:
    linear-gradient(to right, transparent calc(100% - 1px), var(--home-line) 1px),
    linear-gradient(to bottom, transparent calc(100% - 1px), var(--home-line) 1px);
  background-size: 25% 100%, 100% 25%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 7%, #000 20%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 7%, #000 20%, #000 100%);
}

.as-home-hero__inner {
  min-height: max(720px, 100svh);
  padding-top: clamp(150px, 22vh, 230px);
  padding-bottom: 80px;
}

.as-home-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.as-home-hero__eyebrow,
.as-home-hero__title,
.as-home-hero__lead,
.as-home-search,
.as-home-hero__scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-page.is-home-ready .as-home-hero__eyebrow,
body.home-page.is-home-ready .as-home-hero__title,
body.home-page.is-home-ready .as-home-hero__lead,
body.home-page.is-home-ready .as-home-search {
  opacity: 1;
  transform: translateY(0);
}

body.home-page.is-home-ready .as-home-hero__eyebrow { transition-delay: 0.18s; }
body.home-page.is-home-ready .as-home-hero__title { transition-delay: 0.25s; }
body.home-page.is-home-ready .as-home-hero__lead { transition-delay: 0.38s; }
body.home-page.is-home-ready .as-home-search { transition-delay: 0.48s; }

body.home-page.is-home-ready .as-home-hero__scroll {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 0.65s;
}

.as-home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.as-home-hero__eyebrow::before {
  width: 34px;
  height: 1px;
  content: '';
  background: currentColor;
}

.as-home-hero__title {
  max-width: 820px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(4rem, 7.4vw, 7.5rem) !important;
  font-weight: 280;
  font-variation-settings: "wght" 280;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.as-home-hero__title em {
  color: var(--neutral-200);
  font-weight: 280;
  font-variation-settings: "wght" 280;
}

body.property-catalog-page .as-home-hero__title.font-serif {
  max-width: 1080px;
  font-family: "Engravers MT", Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 4.2rem) !important;
  font-weight: 400;
  font-variation-settings: normal;
  line-height: 1.06;
  letter-spacing: 0.005em;
}

body.property-catalog-page .as-home-hero__title.font-serif em {
  font-style: normal;
  font-weight: 400;
  font-variation-settings: normal;
}

.as-home-hero__lead {
  max-width: 530px;
  margin: 34px 0 28px;
}

.as-home-search {
  display: flex;
  width: min(570px, 100%);
  padding: 5px;
  background: rgba(22, 24, 21, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.as-home-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.as-home-search input {
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
}

.as-home-search input::placeholder { color: rgba(255, 255, 255, 0.7); }

.as-home-search button {
  padding: 13px 20px;
  color: var(--home-ink);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--neutral-100);
  border: 0;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.as-home-search button:hover,
.as-home-search button:focus-visible {
  color: #fff;
  background: var(--home-accent);
  transform: translateY(-1px);
}

.as-home-hero__panel {
  position: absolute;
  z-index: -1;
  top: 25%;
  right: 14.2%;
  width: min(260px, 20vw);
  aspect-ratio: 0.8;
  display: grid;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.16), transparent 24%),
    repeating-linear-gradient(165deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 13px),
    linear-gradient(145deg, #853945, #722a35 62%, #571d26);
  box-shadow: 0 30px 80px rgba(17, 8, 10, 0.3);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease 0.9s;
}

body.home-page.is-home-ready .as-home-hero__panel { opacity: 1; }

.as-home-hero__panel::before,
.as-home-hero__panel::after {
  position: absolute;
  right: -25%;
  left: -25%;
  height: 1px;
  content: '';
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(-13deg);
}

.as-home-hero__panel::before { top: 43%; }
.as-home-hero__panel::after { top: 68%; }

.as-home-hero__panel img {
  position: relative;
  z-index: 1;
  width: 34%;
  max-height: 38%;
  filter: drop-shadow(0 10px 24px rgba(35, 10, 16, 0.3));
}

.as-home-hero__panel-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.15rem);
}

.as-home-hero__panel-content img {
  width: 29%;
  max-height: none;
}

.as-home-hero__panel-content span {
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(0.58rem, 1.15vw, 1.05rem);
  font-weight: 700;
  font-variation-settings: "wght" 700;
  letter-spacing: 0.15em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}




.as-home-hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translate(-50%, 24px);
}

.as-home-hero__scroll i { animation: home-scroll 1.6s ease-in-out infinite; }

.home-catalog-intro {
  padding-top: clamp(70px, 9vw, 130px);
}

@keyframes home-hero-settle {
  from { transform: scale(1.12); }
  to { transform: scale(1.03); }
}



@keyframes home-scroll {
  50% { transform: translateY(6px); }
}

@media (max-width: 1199.98px) {
  .as-home-hero__panel { right: 8%; }
}

@media (max-width: 991.98px) {
  .as-home-hero__panel {
    top: 15%;
    right: 5%;
    width: clamp(130px, 19vw, 170px);
  }
}

@media (max-width: 767.98px) {
  .as-home-hero,
  .as-home-hero__inner { min-height: 100svh; }

  .as-home-hero__media {
    background-position: center;
  }

  .as-home-hero__grid { background-size: 50% 100%, 100% 20%; }
  .as-home-hero__inner {
    align-items: flex-end !important;
    padding-top: 135px;
    padding-bottom: 112px;
  }

  .as-home-hero__eyebrow { margin-bottom: 18px; }
  .as-home-hero__title { font-size: clamp(3.15rem, 15.5vw, 4.45rem) !important; line-height: 0.94; }
  body.property-catalog-page .as-home-hero__title.font-serif {
    font-size: clamp(1.65rem, 7vw, 2.25rem) !important;
    line-height: 1.12;
    letter-spacing: 0;
  }
  .as-home-hero__lead { max-width: 100%; margin-top: 24px; }
  .as-home-hero__panel {
    top: 16%;
    right: 24px;
    width: clamp(105px, 31vw, 124px);
  }
  .as-home-search { width: 100%; }
  .as-home-search input { padding-inline: 14px 8px; }
  .as-home-search button { padding-inline: 14px; }
  .as-home-hero__scroll { bottom: 22px; }

}

@media (prefers-reduced-motion: reduce) {
  .home-intro { display: none; }
  .as-home-hero__media,
  .as-home-hero__scroll i { animation: none; }
  .as-home-hero__eyebrow,
  .as-home-hero__title,
  .as-home-hero__lead,
  .as-home-search,
  .as-home-hero__scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .as-home-hero__scroll { transform: translateX(-50%); }
  .as-home-hero__panel { opacity: 1; transition: none; }
  * { scroll-behavior: auto !important; }
}
