/* Homepage editorial intro — "Handpicked stays" (eh- prefix). Light, no GSAP. */
.editorial-hero {
  --eh-bg: #faf6ef;
  --eh-title: #10302f;
  --eh-gold: #a6864f; /* darkened from #b8975c for AA on cream */
  --eh-gold-mark: #b8975c;
  --eh-body: #4a4844;
  --eh-display: "Cormorant Garamond", Georgia, serif;
  --eh-sans: Inter, Roboto, "Segoe UI", sans-serif;

  position: relative;
  overflow: hidden;
  background: var(--eh-bg);
  color: var(--eh-body);
  isolation: isolate;
  /* Full viewport under sticky header (same --hdr as carousel) */
  min-height: calc(100svh - var(--hdr, 159px) - var(--ab-h, 0px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Faint leaf atmosphere — static, blurred, low opacity */
.editorial-hero::before,
.editorial-hero::after {
  content: "";
  position: absolute;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 40% at 40% 45%, rgba(16, 48, 47, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 35% 50% at 62% 58%, rgba(168, 134, 79, 0.12) 0%, transparent 72%);
  filter: blur(28px);
  opacity: 0.16;
}

.editorial-hero::before {
  left: -8%;
  top: 8%;
  transform: rotate(-18deg);
}

.editorial-hero::after {
  right: -10%;
  bottom: 0;
  transform: rotate(22deg);
  opacity: 0.12;
}

.editorial-hero > .container {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centered content band — wider than the last pass, not full-bleed */
  max-width: 1240px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.25rem, 3.5vw, 1.75rem) !important;
  padding-right: clamp(1.25rem, 3.5vw, 1.75rem) !important;
  /* Nudge the whole block further right */
  transform: translateX(4rem);
}

@media (max-width: 991.98px) {
  .editorial-hero > .container {
    transform: none;
  }
}

.editorial-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 3.25rem 0 3.5rem;
}

.editorial-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.eh-eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--eh-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eh-gold);
}

.eh-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--eh-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 4.6vw, 3.45rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--eh-title);
}

.eh-leaf-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 28rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.eh-leaf-rule__line {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(184, 151, 92, 0.55);
}

.eh-leaf-rule__mark {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--eh-gold-mark);
  display: block;
}

.eh-body {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  font-family: var(--eh-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--eh-body);
}

.editorial-hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden; /* required for clip-path curtain reveal */
  /* no radius, border, or shadow */
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--eh-bg);
}

.editorial-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  will-change: transform;
  /* Soft-merge mask — layout blend only (not the entrance motion) */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.eh-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.eh-wash--top {
  background: linear-gradient(to bottom, var(--eh-bg) 0%, transparent 33%);
}

.eh-wash--left {
  display: none;
}

@media (min-width: 992px) {
  .editorial-hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    column-gap: 0;
    padding: 5.25rem 0;
  }

  .editorial-hero__copy {
    padding-right: 1.5rem;
  }

  .editorial-hero__media {
    margin-left: -4.5rem;
    aspect-ratio: 5 / 4;
  }

  .editorial-hero__media img {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%);
    mask-image: linear-gradient(to right, transparent 0%, #000 32%);
  }

  .eh-wash--top {
    display: none;
  }

  .eh-wash--left {
    display: block;
    width: 48%;
    right: auto;
    background: linear-gradient(
      to right,
      var(--eh-bg) 15%,
      rgba(250, 246, 239, 0.75) 55%,
      transparent 100%
    );
  }
}

@media (min-width: 1200px) {
  .editorial-hero__media {
    margin-left: -5.5rem;
  }
}

/* —— Text reveal (CSS fallback when GSAP unavailable) —— */
html.js-enabled .editorial-hero [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-enabled .editorial-hero [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-enabled .editorial-hero [data-reveal="eyebrow"] { transition-delay: 0ms; }
html.js-enabled .editorial-hero [data-reveal="title"] { transition-delay: 100ms; }
html.js-enabled .editorial-hero [data-reveal="rule"] { transition-delay: 200ms; }
html.js-enabled .editorial-hero [data-reveal="body"] { transition-delay: 300ms; }

/* Image entrance initial state — bottom→top clip (GSAP animates this) */
html.js-enabled .editorial-hero [data-reveal-image]:not(.is-revealed) {
  -webkit-clip-path: inset(100% 0 0 0);
  clip-path: inset(100% 0 0 0);
}

html.js-enabled .editorial-hero [data-reveal-image]:not(.is-revealed) img {
  transform: scale(1.2);
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
  html.js-enabled .editorial-hero [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html.js-enabled .editorial-hero [data-reveal-image],
  html.js-enabled .editorial-hero [data-reveal-image] img {
    -webkit-clip-path: inset(0% 0 0 0) !important;
    clip-path: inset(0% 0 0 0) !important;
    transform: none !important;
  }
}
