:root {
  color-scheme: light;
  --ivory: #f5f0e7;
  --ink: #302e2a;
  --taupe: #8b7b6a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; background: var(--ivory); color: var(--ink); }

.landing {
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: minmax(170px, 31fr) minmax(0, 69fr);
  padding: 0 22px 22px;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(22px, 3.8vh, 54px) clamp(18px, 2vw, 44px) clamp(20px, 3.6vh, 40px);
  position: relative;
  isolation: isolate;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 90% 100%, rgba(180, 158, 128, .09), transparent 66%);
}

.wordmark {
  display: block;
  align-self: flex-start;
  flex-shrink: 0;
  margin: 0;
  width: clamp(210px, 21vw, 330px);
  line-height: 1;
}

.wordmark-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.slogan {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--taupe);
  font-size: clamp(38px, 4.9vw, 82px);
  letter-spacing: -.012em;
  line-height: 1.12;
  margin: 0 0 0 auto;
  white-space: nowrap;
}

.lobby {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #9b8066;
}

.lobby-backdrop {
  display: block;
  position: absolute;
  inset: -25px;
  z-index: -1;
  background: url("/manus-storage/HERODESIGN_CAMERON37_24_V1_HighDefinition_36ad806e.webp") center / cover no-repeat;
  filter: blur(24px) brightness(.75);
  opacity: .52;
}

.lobby-camera {
  height: 100%;
  width: 100%;
  transform-origin: 50% 50%;
  animation: walk-in 32s ease-in-out infinite alternate;
  will-change: transform;
}

.lobby-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.lobby-bottom-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(150px, 24%);
  background: linear-gradient(transparent, rgba(36, 29, 23, .3));
  pointer-events: none;
}

.video-link {
  position: absolute;
  left: clamp(20px, 2.5vw, 48px);
  bottom: clamp(20px, 3.6vh, 46px);
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 12px 17px 12px 12px;
  background: rgba(248, 244, 237, .94);
  border: 1px solid rgba(248, 244, 237, .8);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .035em;
  transition: background .25s, color .25s, border-color .25s;
  z-index: 2;
}

.play-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(48, 46, 42, .38);
  border-radius: 50%;
}
.play-mark svg { width: 18px; height: 18px; }
.link-arrow { width: 16px; height: 16px; margin-left: 13px; }
.video-link:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.video-link:hover .play-mark { border-color: rgba(245, 240, 231, .55); }
.video-link:focus-visible { outline: 3px solid var(--ivory); outline-offset: 5px; }
body.page-inactive .lobby-camera { animation-play-state: paused; }

@keyframes walk-in {
  from { transform: translate3d(.1%, .1%, 0) scale(.96); }
  to { transform: translate3d(-.1%, -.1%, 0) scale(.995); }
}

@media (max-width: 900px) {
  .landing { padding: 0 14px 14px; }
  .masthead { gap: 25px; padding-left: 10px; padding-right: 10px; }
  .slogan { font-size: clamp(30px, 4.4vw, 43px); }
  .wordmark { width: 205px; }
}

@media (max-width: 600px) and (orientation: portrait) {
  .landing {
    grid-template-rows: minmax(160px, 28fr) minmax(0, 72fr);
    padding: 0 10px max(10px, env(safe-area-inset-bottom));
  }
  .masthead { padding: 22px 12px 20px; gap: 14px; flex-direction: column; align-items: flex-start; justify-content: space-between; }
  .wordmark { width: 190px; }
  .slogan { font-size: clamp(26px, 7.2vw, 38px); white-space: nowrap; margin: 0; }
  .lobby-backdrop { display: block; }
  .lobby-camera { transform-origin: 50% 50%; }
  .lobby-photo { object-fit: contain; object-position: center; }
  .video-link { left: 18px; right: 18px; bottom: 23px; justify-content: center; font-size: 11px; gap: 10px; }
  .link-arrow { margin-left: 8px; }
  .lobby-bottom-shade { height: 120px; }
  @keyframes walk-in {
    from { transform: translate3d(0, .1%, 0) scale(.96); }
    to { transform: translate3d(0, -.1%, 0) scale(.995); }
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .landing { grid-template-rows: minmax(100px, 28fr) minmax(0, 72fr); padding: 0 10px 10px; }
  .masthead { padding: 13px 14px; align-items: center; }
  .wordmark { align-self: center; }
  .wordmark { width: 165px; }
  .slogan { font-size: clamp(26px, 4.7vw, 45px); }
  .video-link { bottom: 12px; left: 16px; padding: 6px 12px 6px 8px; font-size: 10px; }
  .play-mark { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .lobby-camera { animation: none; transform: none; will-change: auto; }
  .video-link { transition: none; }
}
