/* Site B home entrance (owner-approved 20 Nov 2026): the misty lake, full screen. Poster first, the film fades in over it.
   Words are drawn by code. Phone = the portrait film; landscape = the wide film (src/fronts/b/entrance.js, DESKTOP_FILM). */
.hm-lake { --lk-ivory: #FBF1EC; --lk-plum: #3A172C; --lk-ground: #2C1219;
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; background: var(--lk-ground); color: var(--lk-ivory); }
.hm-lake-poster, .hm-lake-poster img, .hm-lake-film { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-lake-poster img, .hm-lake-film { object-fit: cover; object-position: 72% 50%; display: block; background: var(--lk-ground); }
.hm-lake-poster { z-index: -2; }
.hm-lake-film { z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.9s ease; }
.hm-lake-film.is-playing { opacity: 1; }
/* a very light plum veil, so the lines stay readable on the pale water */
.hm-lake::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(42, 16, 32, 0.12) 0, rgba(42, 16, 32, 0) 22%, rgba(42, 16, 32, 0) 52%, rgba(42, 16, 32, 0.34) 100%); }

.hm-lake-words { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; pointer-events: none;
  padding: 0 16px calc(96px + env(safe-area-inset-bottom, 0px)); }
.hm-lake-words > * { pointer-events: auto; }
.hm-lake-name { margin: 0; direction: ltr; font: 600 15.4vw/0.9 "Cormorant Garamond", Georgia, serif; letter-spacing: 0.02em; color: var(--lk-ivory);
  text-shadow: 0 0.01em 0.02em rgba(42, 16, 32, 0.55), 0 0.03em 0.12em rgba(42, 16, 32, 0.55), 0 0.02em 0.35em rgba(42, 16, 32, 0.5), 0 0 0.8em rgba(58, 23, 44, 0.42); }
.hm-lake-line { margin: 0.45em 0 0; font: 600 clamp(26px, 7vw, 44px)/1.12 var(--f-display); color: var(--lk-ivory);
  text-shadow: 0 1px 2px rgba(42, 16, 32, 0.7), 0 2px 10px rgba(42, 16, 32, 0.65), 0 0 26px rgba(42, 16, 32, 0.55), 0 0 50px rgba(58, 23, 44, 0.4); }
html[lang="ar"] .hm-lake-line { font-weight: 700; }
/* the site's flat plum button: plum ground, ivory words, 2 px corners, no shadow */
.hm-lake-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; margin-top: 28px; padding: 0 34px; background: var(--lk-plum); color: var(--lk-ivory);
  border-radius: 2px; box-shadow: none; text-decoration: none; white-space: nowrap; font: 500 18px/1.2 var(--f-text); letter-spacing: 0.01em; touch-action: manipulation; user-select: none;
  transition: transform 160ms var(--ease-out), filter 160ms; }
.hm-lake-cta:hover { filter: brightness(1.15); }
.hm-lake-cta:active { transform: scale(0.98); }
.hm-lake-cta:focus-visible, .hm-lake-scroll:focus-visible { outline: 2px solid var(--lk-ivory); outline-offset: 4px; }
html[lang="ar"] .hm-lake-cta { font-size: 19px; letter-spacing: normal; }

.hm-lake-scroll { position: absolute; z-index: 1; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--lk-ivory); text-decoration: none; font: 500 16px/1 var(--f-text); letter-spacing: 0.2em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(42, 16, 32, 0.8); padding: 8px 12px; }
.hm-lake-scroll::after { content: ""; width: 1px; height: 26px; background: linear-gradient(var(--lk-ivory), rgba(251, 241, 236, 0)); box-shadow: 0 0 6px rgba(42, 16, 32, 0.6); }
html[lang="ar"] .hm-lake-scroll { letter-spacing: normal; font-size: 17px; }

/* arrival: a short rise and fade, 0.6 s, no bounce (not with reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .hm-lake-name, .hm-lake-line, .hm-lake-cta, .hm-lake-scroll { animation: hm-lake-rise 600ms var(--ease-out) both; }
  .hm-lake-line { animation-delay: 120ms; }
  .hm-lake-cta { animation-delay: 240ms; }
  .hm-lake-scroll { animation-delay: 440ms; }
}
@keyframes hm-lake-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* reduced motion: the poster only */
@media (prefers-reduced-motion: reduce) { .hm-lake-film { display: none; } }

/* the shell bar (logo, links) sits over the lake: the logo paper drops away (multiply), no ivory halo behind it */
body.b-home .b-logo::before { display: none; }

/* landscape: the wide film, full bleed; the words sit in the calm water on the left (physical, also in Arabic: the arch, about 74% across, stays free) */
@media (orientation: landscape) {
  .hm-lake-poster img, .hm-lake-film { object-position: 74% 50%; }
  /* big screens: the light 1080 poster (preloaded) paints at once under the 4K poster, so the lake shows in the first second */
  .hm-lake-poster { background: var(--lk-ground) var(--lk-wide-low) 74% 50% / cover no-repeat; }
  .hm-lake-poster img { background: transparent; }
  .hm-lake::after { background: linear-gradient(90deg, rgba(42, 16, 32, 0.3) 0, rgba(42, 16, 32, 0.1) 42%, rgba(42, 16, 32, 0) 56%), linear-gradient(180deg, rgba(42, 16, 32, 0.1) 0, rgba(42, 16, 32, 0) 20%); }
  .hm-lake-words { inset: 0 auto 0 8vw; width: 37vw; justify-content: center; padding: 16vh 0 60px; }
  .hm-lake-name { font-size: min(7.2vw, 15vh); }
  .hm-lake-line { font-size: clamp(28px, 2.7vw, 48px); }
  .hm-lake-cta { min-height: 62px; padding: 0 40px; font-size: 19px; }
  html[lang="ar"] .hm-lake-cta { font-size: 20px; }
  .hm-lake-scroll { left: calc(8vw + 18.5vw); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hm-lake { min-height: 520px; }
  .hm-lake-name { font-size: min(7.2vw, 20vh); }
}
