/* Three-layer opening, ANMAR's height, no pin and no zoom. Back: the grove. Middle: the room,
   window cut out. Front: eucalyptus. As the opening scrolls away the layers drift at different
   speeds (grove slowest, branch fastest), so the window reads as real depth. --p comes from hz-hero.js:
   0 with the opening fully on screen, 1 once it has scrolled off. Every gap a slower layer opens
   sits in the part of the section that has already scrolled above the screen. */
.hz-hero { position: relative; background: var(--color-navy-deep); }
.hz-sticky { position: relative; height: 92svh; min-height: 580px; overflow: hidden; background: var(--color-ink, #1b1714); --p: 0; }
.hz-layer { position: absolute; inset: 0; pointer-events: none; }
.hz-layer img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; display: block; }
.hz-back { z-index: 0; }
.hz-back img { transform: scale(1.08); }
.hz-wall { z-index: 1; }
.hz-shade { z-index: 2; pointer-events: none; }
.hz-fore { position: absolute; z-index: 3; right: -4vw; top: -3vh; width: min(34vw, 30rem); pointer-events: none; }
.hz-fore img { display: block; width: 100%; height: auto; max-width: none; filter: drop-shadow(0 16px 22px rgba(20, 16, 12, .28)); }
.hz-in { transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.hz-sticky:not(.hz-on) .hz-in { opacity: 0; transform: translateY(1rem); }
@media (orientation: portrait) {
  .hz-fore { width: 62vw; right: -14vw; top: 2vh; }
}
/* Still by Jason's choice (2026-11-17): the layers do not move on scroll. The one exception, also his
   ask: once the page has loaded, the branch sways once, like a light breeze, then settles and stays still.
   It pivots where the stem enters from the top right. */
.hz-fore { transform-origin: 92% 4%; }
.hz-sticky.hz-sway .hz-fore { animation: hz-sway 3.2s cubic-bezier(0.37, 0, 0.63, 1) 250ms both; }
@keyframes hz-sway {
  0%   { transform: rotate(0deg); }
  18%  { transform: rotate(-3.6deg) translateY(-3px); }
  42%  { transform: rotate(2deg); }
  64%  { transform: rotate(-0.9deg); }
  84%  { transform: rotate(0.35deg); }
  100% { transform: rotate(0deg); }
}
/* The install film (Jason, 2026-11-17): its own band right under the opening, on the same navy. */
.hz-film { padding: 4rem 0 1.5rem; background: var(--color-navy-deep); }
.hz-film-fig { margin: 2.5rem 0 0; }
.hz-film-frame { aspect-ratio: 16 / 9; background: var(--color-ink, #1b1714); }
.hz-film-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hz-film-sound { position: absolute; right: .75rem; bottom: .75rem; width: 44px; height: 44px; padding: 0; border-radius: 999px;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); background: rgba(27,23,20,.55); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; }
.hz-film-sound svg { width: 20px; height: 20px; }
.hz-film-sound[data-muted="1"] .hz-ico-on, .hz-film-sound[data-muted="0"] .hz-ico-off { display: none; }
.hz-film-sound:hover { background: rgba(27,23,20,.75); }
.hz-film-sound:focus-visible { outline: 2px solid var(--color-gold, #c9a45c); outline-offset: 2px; }
.hz-film-cap { margin-top: .75rem; font-size: .8125rem; }
@media (max-width: 639px) { .hz-film-sound { right: .5rem; bottom: .5rem; } }
.hz-film-cta { margin-top: 2rem; }
@media (min-width: 640px) { .hz-film { padding: 6rem 0 2.5rem; } }
@media (prefers-reduced-motion: reduce) {
  .hz-in { transition: none; }
  .hz-sticky.hz-sway .hz-fore { animation: none; }
}

/* No native play overlay on the film when the phone blocks autoplay (the first tap starts it instead). */
.hz-film-video:not([controls])::-webkit-media-controls { display: none !important; }
.hz-film-video:not([controls])::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
