/* ━━━━━━━━━━━━━━ HERO SCROLL-SNAP EXPERIENCE ━━━━━━━━━━━━━━ */
.hero-snap-ready {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

#hero {
  position: relative;
  min-height: 100vh;
  overflow: visible;
  background: var(--bg-s);
  isolation: isolate;
}

.hero-scenes {
  position: relative;
  z-index: 1;
}

.hero-scene {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-s);
}

.hero-bg,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 7s cubic-bezier(0.2,0,0.1,1), opacity 0.7s ease;
  will-change: transform;
}

.hero-bg {
  background-image: var(--hero-poster);
  opacity: 1;
}

.hero-video {
  z-index: 1;
  opacity: 0;
}

.hero-video.is-ready { opacity: 1; }
.hero-scene.loaded .hero-bg,
.hero-scene.loaded .hero-video { transform: scale(1); }

.hero-scene.is-active .hero-bg,
.hero-scene.is-active .hero-video { transform: scale(1.015); }

.hero-scene[data-scene-id="exterior"] .hero-bg { background-position: center 25%; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(8,8,6,0.16) 0%,
      rgba(8,8,6,0.015) 34%,
      rgba(8,8,6,0.02) 64%,
      rgba(8,8,6,0.2) 100%
    ),
    radial-gradient(circle at center, rgba(8,8,6,0) 48%, rgba(8,8,6,0.18) 100%);
}

/* SVG corner brackets */
.hero-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: none;
}
.hero-frame svg {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s 0.6s;
}
.hero-frame svg.in { opacity: 1; }

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 52px 64px;
}

/* Animated text blocks */
.h-line {
  overflow: hidden;
  line-height: 1.1;
}
.h-line > * {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.h-line.in > * { transform: none; }

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240,235,227,0.9);
  margin-bottom: 18px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(46px, 6.6vw, 88px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.94;
  margin-bottom: 24px;
  white-space: nowrap;
  text-shadow: 0 2px 32px rgba(0,0,0,0.45);
}

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(15px, 1.8vw, 21px);
  font-style: italic;
  font-weight: 300;
  color: rgba(240,235,227,0.68);
  max-width: 480px;
  margin-bottom: 52px;
}

/* Mobile-only CTA under subtext — hidden on desktop */
.hero-cta-mobile {
  display: none !important;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,235,227,0.88);
  border: 1px solid rgba(240,235,227,0.3);
  padding: 13px 24px;
  text-decoration: none;
  margin-bottom: 36px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.hero-cta-mobile:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 0;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s 1s, transform 0.8s 1s;
}
.hero-stats.in { opacity: 1; transform: none; }

.stat {
  padding-right: 40px;
  border-right: 1px solid rgba(240,235,227,0.18);
  margin-right: 40px;
}
.stat:last-child { border: none; padding-right: 0; margin-right: 0; }
.stat-val {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(250,247,241,0.96);
}
.stat-lbl {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,235,227,0.58);
  margin-top: 5px;
}

.hero-room-content {
  max-width: 640px;
}

.hero-cta-content {
  max-width: none;
  display: flex;
  justify-content: flex-start;
}

.hero-room-kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240,235,227,0.76);
  margin-bottom: 16px;
  text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}

.hero-room-title {
  font-family: var(--serif);
  font-size: clamp(42px, 5.8vw, 78px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: rgba(250,247,241,0.96);
  text-shadow: 0 2px 32px rgba(0,0,0,0.42);
}

.hero-room-text {
  font-family: var(--serif);
  font-size: clamp(15px, 1.7vw, 20px);
  font-style: italic;
  font-weight: 300;
  color: rgba(240,235,227,0.7);
  max-width: 460px;
  margin-top: 22px;
}

.hero-room-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
  color: rgba(240,235,227,0.62);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-room-meta span + span {
  padding-left: 18px;
  border-left: 1px solid rgba(240,235,227,0.18);
}

.hero-panel-cta {
  margin-top: 0;
  border: 1px solid rgba(240,235,227,0.36);
  background: rgba(8,8,6,0.34);
  color: rgba(250,247,241,0.92);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.hero-panel-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero-scene::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10vh;
  z-index: 1;
  background: linear-gradient(180deg, rgba(250,250,248,0), rgba(250,250,248,0.82));
}

/* ━━━━━━━━━━━━━━ LIVE VIEWERS PILL ━━━━━━━━━━━━━━ */
.live-pill {
  display: none;
  position: fixed;
  bottom: 32px;
  right: 96px;
  z-index: 5;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 15px;
  background: rgba(18,16,12,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(240,235,227,0.14);
  border-radius: 100px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s 1.8s, transform 0.6s 1.8s cubic-bezier(0.16,1,0.3,1),
              background 0.25s, border-color 0.25s;
  cursor: default;
}
.live-pill:hover {
  background: rgba(30,26,20,0.78);
  border-color: rgba(240,235,227,0.22);
}
.live-pill.in { opacity: 1; transform: none; }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: livePulse 2s ease infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  60%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.live-pill-text {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(240,235,227,0.9);
  white-space: nowrap;
}
.live-pill-count { font-weight: 600; color: #fff; }

.scroll-arrow {
  position: fixed;
  bottom: 32px;
  right: 44px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 1s 1.8s;
}
.scroll-arrow.in { opacity: 1; }
.scroll-arrow span {
  font-size: 7.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240,235,227,0.58);
  writing-mode: vertical-lr;
}
.scroll-arrow-line {
  width: 1px;
  height: 64px;
  overflow: hidden;
  position: relative;
}
.scroll-arrow-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--accent);
  animation: arrowDrop 2.2s ease-in-out infinite;
}
@keyframes arrowDrop {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.hero-progress-dots {
  position: fixed;
  top: 50%;
  right: 22px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.8s 1.4s;
}

.hero-progress-dots.in { opacity: 1; }

.hero-chrome-hidden .hero-frame,
.hero-chrome-hidden .hero-progress-dots,
.hero-chrome-hidden .live-pill,
.hero-chrome-hidden .scroll-arrow {
  opacity: 0;
  pointer-events: none;
}

.hero-dot {
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(240,235,227,0.28);
  cursor: pointer;
  padding: 0;
  transition: height 0.24s, background 0.24s, opacity 0.24s;
}

.hero-dot:hover,
.hero-dot.active {
  height: 18px;
  background: rgba(196,160,106,0.72);
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .hero-snap-ready { scroll-behavior: auto; }
  .hero-bg,
  .hero-video,
  .h-line > *,
  .hero-stats,
  .live-pill,
  .scroll-arrow,
  .hero-progress-dots,
  .hero-dot {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .hero-scene {
    min-height: 100svh;
  }

  .hero-bg,
  .hero-video,
  .hero-overlay { height: 100%; }

  .hero-content {
    padding: 0 20px 36px;
  }

  .hero-room-title {
    font-size: clamp(34px, 10vw, 52px);
    line-height: 1;
  }

  .hero-room-text {
    font-size: 14px;
    max-width: 92%;
  }

  .hero-progress-dots {
    right: 0.75rem;
    gap: 8px;
  }

  .hero-dot {
    width: 4px;
    height: 4px;
  }

  .hero-dot:hover,
  .hero-dot.active {
    height: 14px;
  }
}
