/* The approved composition supplies the tree, glass, and their shared light. */
.home-page main { z-index: auto; }
.home-feature {
  display: grid;
  grid-template-columns: minmax(0, .46fr) minmax(0, .54fr);
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse 72% 48% at 84% 18%, rgba(43,70,85,.95), rgba(29,52,66,.78) 40%, rgba(20,45,58,0) 100%),
    linear-gradient(150deg, #102a36, #020c11 68%);
}
/* Fade the dark upper shade across the full gap to the glass, not just
   the short strip at the top of the artwork. The rim stays unobscured. */
.home-feature::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: var(--home-panel-top, 20%);
  pointer-events: none;
  background: linear-gradient(100deg, #14252f, #071217 80%);
  --shade-fade: linear-gradient(180deg, #000, rgba(0,0,0,.94) 15%,
    rgba(0,0,0,.78) 30%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.22) 70%,
    rgba(0,0,0,.06) 85%, transparent);
  -webkit-mask-image: var(--shade-fade);
  mask-image: var(--shade-fade);
}
.home-copy { position: relative; z-index: 1; min-width: 0; padding-right: 0; }
.home-tree-art {
  position: absolute;
  top: 50%;
  right: 0;
  width: min(80%, calc((100svh - var(--nav-h) - 90px) * 1.768421));
  aspect-ratio: 2688 / 1520;
  transform: translateY(-50%);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%);
  mask-image: linear-gradient(90deg, transparent, #000 24%);
}
.home-tree-image,
.home-tree-glass,
.home-tree-sparkles { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.home-tree-glass { pointer-events: none; }
.home-tree-image {
  object-fit: contain;
  object-position: right center;
  /* Become opaque before the sky layer ends, so fractional scaling cannot
     expose the darker background between their antialiased edges. */
  --art-fade: linear-gradient(180deg, transparent 0%, transparent 6.5%, #000 7%, #000 94%, transparent);
  -webkit-mask-image: var(--art-fade);
  mask-image: var(--art-fade);
}
.home-tree-sparkles { pointer-events: none; mix-blend-mode: screen; }

@media (max-width: 760px), (min-width: 761px) and (max-width: 1024px) and (orientation: portrait) {
  .home-feature {
    display: flex; flex-direction: column; align-items: stretch;
    background:
      radial-gradient(ellipse 140% 28% at 84% 52%, rgba(43,70,85,.95), rgba(29,52,66,.65) 42%, rgba(20,45,58,0) 100%),
      linear-gradient(150deg, #102a36, #020c11 68%);
  }
  .home-feature::after { display: none; }
  .home-copy { width: 100%; padding: 32px 19px 0; }
  /* Crop the empty left side, keeping the whole crown and pot in view. */
  .home-tree-art {
    position: relative; inset: auto; width: 100%; aspect-ratio: 1.23;
    flex: none; margin-block: auto; transform: none;
    -webkit-mask-image: none; mask-image: none;
  }
  .home-tree-image {
    object-fit: cover;
  }
}
@media (min-width: 761px) and (max-width: 1024px) and (orientation: portrait) {
  .home-copy { max-width: 680px; padding: 48px 32px 0; margin-inline: auto; }
  .home-tree-art { max-width: 840px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .home-tree-sparkles { display: none; }
}
