/* Keep the opening landscape full-height and the navigation readable. */
/* Shared typography for the section headings. */
:is(#origins-preview, #trust-entry, #voices-preview, #blueprint) > .container-xm > header {
  max-width: none;
  text-align: center;
}

:is(#origins-preview, #trust-entry, #voices-preview, #blueprint) > .container-xm > header h2 {
  font-family: "STSong", "华文宋体", "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  font-size: clamp(32px, 2.8vw, 56px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .18em;
  text-indent: .18em;
}

.xm-home-section-lead {
  display: block;
  margin: 18px 0 10px;
  color: #39382f;
  font-size: clamp(20px, 1.5vw, 26px);
  font-weight: 500;
  line-height: 1.6;
}

.xm-home-section-description {
  display: block;
}

/* A quiet, warm transition from the origins to the trust section. */
.xm-home-slogan {
  position: relative;
  padding: clamp(40px, 3.6vw, 64px) 24px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(207, 182, 134, .13), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, #f4efe5 48%, var(--mist) 100%);
  scroll-margin-top: 88px;
}

.xm-home-slogan .container-xm {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.xm-home-slogan p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  color: #836a49;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .4em;
}

.xm-home-slogan p::before,
.xm-home-slogan p::after {
  content: "";
  width: clamp(28px, 4vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, #b1976b);
}

.xm-home-slogan p::after { transform: rotate(180deg); }

.xm-home-slogan h2 {
  margin: 17px 0 0;
  color: #66513b;
  font-family: "STSong", "华文宋体", "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  font-size: clamp(30px, 3.1vw, 50px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .08em;
  text-indent: .08em;
}

@media (max-width: 600px) {
  :is(#origins-preview, #trust-entry, #voices-preview, #blueprint) > .container-xm > header h2 {
    font-size: 30px;
  }
  .xm-home-slogan { padding: 36px 20px; }
  .xm-home-slogan h2 {
    margin-top: 15px;
    font-size: clamp(24px, 6.5vw, 30px);
    letter-spacing: .025em;
    text-indent: .025em;
  }
  .xm-home-slogan p { gap: 12px; font-size: 10px; }
}

.xm-home-hero {
  height: 100vh;
  height: 100dvh;
}

.xm-site-header {
  background-color: rgba(248, 246, 242, 0.86);
  border-bottom: 1px solid rgba(139, 110, 78, 0.15);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 12px rgba(46, 42, 34, 0.04);
}

.xm-home-hero h1 {
  color: #f8f6f2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.24);
  text-wrap: balance;
}

/* Keep the carousel controls above the fixed mobile navigation. */
@media (max-width: 1023px) {
  .xm-home-hero-copy {
    padding-bottom: calc(144px + env(safe-area-inset-bottom));
  }

  .xm-home-hero-controls {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}
