@import url('/home-cinematic.css');

/* The preview reuses the live home page's type, spacing, palette, and toolbar. */
.motion-page .motion-stage {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #172c25;
}

.motion-page .motion-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.motion-page .motion-wash,
.motion-page .motion-edge {
  position: absolute;
  inset: 0;
}

.motion-page .motion-wash {
  background:
    linear-gradient(90deg, rgba(5, 17, 12, .60), rgba(7, 19, 13, .32) 49%, rgba(7, 19, 13, .14)),
    linear-gradient(0deg, rgba(4, 13, 9, .49), transparent 29%, transparent 72%, rgba(4, 13, 9, .12));
}

.motion-page .motion-edge {
  background: radial-gradient(ellipse 88% 86% at 51% 46%, transparent 42%, rgba(3, 12, 7, .34));
}

/* Keep each video chapter seamless and its headings at a consistent scale. */
.motion-page .home-chapters > section { border: 0; }
.motion-page .hero h1 { line-height: 1.28; }
.motion-page .home-chapters > section::after { background: none; }
.motion-page .hero-copy::before,
.motion-page .about-copy::before,
.motion-page .object-feature-copy::before {
  left: -38%;
  right: auto;
  width: 176%;
  height: 185%;
  background: radial-gradient(ellipse closest-side at 44% 50%,
    rgba(4, 16, 10, .52) 0%, rgba(4, 16, 10, .25) 52%, transparent 100%);
}
.motion-page .contact-grid::before {
  inset: -35% -15%;
  background: radial-gradient(ellipse closest-side at center,
    rgba(4, 16, 10, .43) 0%, rgba(4, 16, 10, .2) 55%, transparent 100%);
}
.motion-page .object-feature-ritual .object-feature-copy::before {
  left: -38%;
  right: auto;
  width: 176%;
}
.motion-page .about-copy > p:not(.eyebrow),
.motion-page .object-feature-copy > p:not(.eyebrow):not(.object-feature-lead),
.motion-page .contact-grid > div:first-child > p:not(.eyebrow) {
  max-width: 29em;
  text-wrap: pretty;
}
.motion-page .object-feature-ritual .object-feature-layout { justify-content: flex-start; }
.motion-page .object-feature-ritual .object-feature-copy { text-align: left; }
.motion-page .about-copy h2,
.motion-page .contact h2 {
  font-size: clamp(2.3rem, 4vw, 4.1rem);
  line-height: 1.35;
}

/* Let the closing scene play for a full scroll span without a separate footer. */
.motion-page .home-chapters > .contact {
  display: block;
  min-height: 200svh;
  padding: 0;
}

.motion-page .contact-grid {
  position: sticky;
  top: 0;
  min-height: 100svh;
  align-items: center;
  padding-block: clamp(120px, 13vh, 170px) 105px;
}

.motion-page .motion-legal {
  margin-top: 22px;
  max-width: 46ch;
  font-size: .875rem;
  line-height: 1.75;
  color: #c9d2c4;
}

.motion-page .wechat-qr {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 12px;
  background: rgba(245, 243, 237, .96);
  color: #23372d;
  box-shadow: 0 10px 30px rgba(4, 14, 9, .2);
}

.motion-page .wechat-qr:hover { opacity: 1; background: #fff; }
.motion-page .wechat-qr img { width: 116px; height: 116px; object-fit: contain; }
.motion-page .wechat-qr small { font-size: .7rem; letter-spacing: .08em; color: #354c3d; }

.motion-page .replay-entrance {
  color: var(--paper);
  border-color: rgba(245, 243, 237, .52);
}

@media (max-width: 760px) {
  .motion-page .wechat-qr { padding: 7px; gap: 4px; }
  .motion-page .wechat-qr img { width: 96px; height: 96px; }
  .motion-page .hero h1 { line-height: 1.34; }
  .motion-page .hero-copy::before,
  .motion-page .about-copy::before,
  .motion-page .object-feature-copy::before {
    left: -46%;
    width: 192%;
    height: 160%;
  }
  .motion-page .object-feature-ritual .object-feature-copy::before {
    left: -46%;
    right: auto;
    width: 192%;
  }
  .motion-page .about-copy h2,
  .motion-page .contact h2 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .motion-page .motion-stage video { object-position: 55% center; }
  .motion-page .contact-grid { padding-block: 112px 84px; }
  .motion-page .motion-wash {
    background:
      linear-gradient(90deg, rgba(5, 17, 12, .67), rgba(7, 19, 13, .32)),
      linear-gradient(180deg, rgba(4, 13, 9, .30), transparent 26%, transparent 67%, rgba(4, 13, 9, .53));
  }
}
