/* Editorial template hero video. Kept separate so shared template imagery stays unchanged. */
.agent-site-editorial .as-editorial-hero > .as-editorial-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: as-image-in 1.4s ease both;
  transition: transform 8s cubic-bezier(.16, 1, .3, 1);
}

.agent-site-editorial.as-loaded .as-editorial-hero > .as-editorial-hero-video {
  transform: scale(1.035);
}

.agent-site-editorial .as-property-info {
  border-bottom: 0;
}

.agent-site-editorial.as-scroll-reversible .as-reveal {
  --editorial-reveal-x: 0px;
  --editorial-reveal-y: 46px;
  opacity: 0;
  filter: blur(3px);
  transform: translate3d(var(--editorial-reveal-x), var(--editorial-reveal-y), 0) scale(.992);
  transition:
    opacity .62s ease,
    filter .62s ease,
    transform .88s cubic-bezier(.16, 1, .3, 1);
  transition-delay: 0ms;
  will-change: opacity, filter, transform;
}

.agent-site-editorial.as-scroll-reversible .as-reveal.is-visible {
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: var(--reveal-delay, 0ms);
}

.agent-site-editorial.as-scroll-reversible .as-reveal.is-above {
  --editorial-reveal-y: -30px;
}

.agent-site-editorial.as-scroll-reversible :is(.as-property,.as-area-card,.as-social-card).as-reveal:nth-child(odd) {
  --editorial-reveal-x: -28px;
  --editorial-reveal-y: 24px;
}

.agent-site-editorial.as-scroll-reversible :is(.as-property,.as-area-card,.as-social-card).as-reveal:nth-child(even) {
  --editorial-reveal-x: 28px;
  --editorial-reveal-y: 24px;
}

@media (min-width: 761px) {
  .agent-site-editorial .as-editorial-hero {
    height: 100svh;
    min-height: 680px;
  }

  .agent-site-editorial .as-editorial-hero .as-hero-content {
    width: min(1100px, 72vw);
    padding-top: clamp(170px, 24vh, 280px);
    padding-bottom: clamp(80px, 12vh, 130px);
  }

  .agent-site-editorial .as-editorial-hero h1 {
    max-width: 18ch;
    font-size: clamp(60px, 6vw, 104px);
  }
}

@media (max-width: 760px) {
  .agent-site-editorial .as-editorial-hero {
    height: 100svh;
    min-height: 0;
  }

  .agent-site-editorial .as-editorial-hero .as-hero-content {
    width: calc(100% - 40px);
    margin-inline: 20px;
    padding: clamp(110px, 16vh, 145px) 0 clamp(42px, 7vh, 62px);
  }

  .agent-site-editorial .as-editorial-hero h1 {
    max-width: none;
    font-size: clamp(48px, 12vw, 64px);
    line-height: 1;
  }

  .agent-site-editorial .as-editorial-hero .as-hero-links {
    margin-top: 24px;
  }
}

@media (max-width: 760px) and (max-height: 620px) {
  .agent-site-editorial .as-editorial-hero {
    height: auto;
    min-height: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-site-editorial.as-scroll-reversible .as-reveal,
  .agent-site-editorial.as-loaded .as-editorial-hero > .as-editorial-hero-video {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}
