/* Shared library parallax. Layers move with transform and stay in scroll attachment.
   A dark scrim keeps text at WCAG AA over photographs. */
.lx-fill {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.lx-fill :is(h1, h2, h3, p, li, .lead, .ey, .lede, .sub) {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.88);
}
.lx-bg,
.lx-scrim {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.lx-bg {
  left: -8%;
  right: -8%;
  top: -14%;
  bottom: -14%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  transform: translate3d(0, 0, 0) scale(1.08);
}
.lx-scrim {
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.4) 0%, rgba(7, 8, 12, 0.22) 46%, rgba(7, 8, 12, 0.46) 100%);
}
.lx-band {
  min-height: 46vh;
  margin: 0;
}
.lx-band .lx-scrim {
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.42), rgba(7, 8, 12, 0.18) 42%, rgba(7, 8, 12, 0.5));
}
.lx-media {
  transform: translate3d(0, 0, 0) scale(1.08);
  transform-origin: center center;
  will-change: auto;
}
.hero.lx-banner {
  max-width: none;
  width: 100%;
  min-height: min(72vh, 720px);
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem);
}
.hero.lx-banner > :not(.lx-bg):not(.lx-scrim) {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.lx-fill > .lx-bg,
.lx-fill > .lx-scrim {
  position: absolute;
  width: auto;
  max-width: none;
  margin: 0;
}
.lx-fill > .lx-bg { z-index: 0; }
.lx-fill > .lx-scrim { z-index: 1; }
.lx-fill > :not(.lx-bg):not(.lx-scrim):not(img):not(video):not(picture) {
  position: relative;
  z-index: 2;
}
html.lx-still .lx-bg,
html.lx-still .lx-media,
html.lx-still .lx-page {
  transform: none !important;
}
@media (max-width: 800px) {
  .lx-band { min-height: 38vh; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-bg, .lx-media, .lx-page {
    transform: none !important;
    transition: none !important;
  }
}

/* Full-page vaulted library behind the card grid and the rest of each library page.
   The photograph moves with the existing scroll loop. A dark scrim keeps type readable.
   Section heroes keep their own photographs above this layer. */
.lx-page,
.lx-page-scrim {
  position: fixed;
  pointer-events: none;
}
.lx-page {
  z-index: -1;
  left: -8%;
  right: -8%;
  top: -18%;
  bottom: -18%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.08);
}
.lx-page-scrim {
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.42) 0%, rgba(7, 8, 12, 0.34) 48%, rgba(7, 8, 12, 0.48) 100%);
}
body.lx-vault {
  background: transparent;
  isolation: isolate;
}
html:has(body.lx-vault) { background: #07080c; }
body.lx-vault .network {
  background: transparent;
}
body.lx-vault :is(.card, .fact, .note, .statue-card, .god-card, .cta) {
  background: rgba(7, 8, 12, 0.55);
}
body.lx-vault .hero-inner {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.42));
}
body.lx-vault .hero::before {
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.28) 0%, rgba(7, 8, 12, 0.08) 42%, rgba(7, 8, 12, 0.4) 100%);
}
body.lx-vault .tile::before {
  background: linear-gradient(180deg, transparent 52%, rgba(7, 8, 12, 0.5));
}
body.edition.lx-vault {
  background: transparent;
}
body.edition.lx-vault .band::before {
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.22), rgba(7, 8, 12, 0.4));
}
figure.ph.lx-ph {
  background-size: cover;
  background-position: center;
}
figure.ph.lx-ph .glyph {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px #000;
}
.asia-hero-photo, .asia-films { margin: 1.1rem 0 0; position: relative; z-index: 2; }
.asia-hero-photo { max-width: 28rem; }
.asia-hero-photo img, .asia-films video, .asia-films .asia-film-still {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #07080c;
}
.asia-films { display: grid; gap: 12px; margin-bottom: 1.4rem; }
.asia-films figure { margin: 0; }
.asia-film-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  video.asia-film { display: none !important; }
  img.asia-film-still { display: block; }
}
@media print {
  .lx-page,
  .lx-page-scrim {
    display: none !important;
  }
  body.edition.lx-vault {
    background: #fff !important;
    color: #000;
  }
}
