/* Shared photographic openings for the three resource pages. */
.immersive-cover {
  --cover-ink: #142e38;
  --cover-muted: #4f626a;
  --cover-rule: #dae3e6;
  --cover-focus: 50% 56%;
  padding: 0;
  color: #fff;
  background: var(--cover-ink);
}

.immersive-cover .cover-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(400px, 32vw, 520px);
  overflow: hidden;
}

.immersive-cover .cover-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  margin: 0;
}

.immersive-cover .cover-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cover-focus);
}

.immersive-cover .cover-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 23, 29, 0.94) 0%, rgba(8, 23, 29, 0.82) 30%, rgba(8, 23, 29, 0.65) 50%, rgba(8, 23, 29, 0.16) 76%, rgba(8, 23, 29, 0.05) 100%);
}

.immersive-cover .cover-content {
  padding-block: 68px;
}

.immersive-cover .cover-copy {
  width: min(580px, 56%);
}

.immersive-cover h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: balance;
}

.immersive-cover .cover-copy p {
  max-width: none;
  margin: 0;
  color: #edf3f5;
  font-size: 16px;
  line-height: 1.9;
  text-align: left;
  overflow-wrap: break-word;
}

.immersive-cover .cover-facts {
  border-bottom: 1px solid var(--cover-rule);
  background: #fff;
  color: var(--cover-ink);
}

.immersive-cover .scenario-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto;
  padding-block: 26px;
}

.immersive-cover .scenario-hero-stats > span {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  min-width: 0;
  min-height: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--cover-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.immersive-cover .scenario-hero-stats > span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 36px;
  background: var(--cover-rule);
  transform: translateY(-50%);
}

.immersive-cover .scenario-hero-stats b {
  color: var(--cover-ink);
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.immersive-cover.build-cover {
  --cover-focus: 50% 51%;
}

.immersive-cover.dataset-cover {
  --cover-focus: 50% 57%;
}

.immersive-cover.scenario-cover {
  --cover-focus: 50% 61%;
}

.immersive-cover ::selection {
  color: #fff;
  background: var(--accent);
}

html[lang="en"] .immersive-cover h1 {
  font-size: clamp(40px, 4.2vw, 60px);
}

/* Keep the existing build figures inside the mobile reading column. */
@media (max-width: 920px) {
  .build-method-card,
  .build-method-card:nth-child(even) {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .build-method-card > .build-media-collage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
  }
}

@media (max-width: 900px) {
  .immersive-cover .cover-stage {
    min-height: 400px;
  }

  .immersive-cover .cover-copy {
    width: min(540px, 72%);
  }

  .immersive-cover .cover-stage::after {
    background: linear-gradient(90deg, rgba(8, 23, 29, 0.94) 0%, rgba(8, 23, 29, 0.78) 55%, rgba(8, 23, 29, 0.32) 100%);
  }

  .immersive-cover .scenario-hero-stats > span {
    padding-inline: 20px;
  }
}

@media (max-width: 620px) {
  .immersive-cover .cover-stage {
    align-items: flex-end;
    min-height: 460px;
  }

  .immersive-cover .cover-image img {
    object-position: 62% 50%;
  }

  .immersive-cover .cover-stage::after {
    background: linear-gradient(180deg, rgba(8, 23, 29, 0.08) 0%, rgba(8, 23, 29, 0.2) 25%, rgba(8, 23, 29, 0.87) 48%, rgba(8, 23, 29, 0.98) 100%);
  }

  .immersive-cover .cover-content {
    padding: 190px 4px 32px;
  }

  .immersive-cover .cover-copy {
    width: 100%;
  }

  .immersive-cover h1,
  html[lang="en"] .immersive-cover h1 {
    margin-bottom: 18px;
    font-size: 36px;
    line-height: 1.2;
  }

  .immersive-cover .cover-copy p {
    font-size: 14px;
    line-height: 1.85;
  }

  .immersive-cover .scenario-hero-stats {
    padding-block: 22px;
  }

  .immersive-cover .scenario-hero-stats > span {
    display: block;
    padding-inline: 12px;
    font-size: 12px;
    line-height: 1.65;
  }

  .immersive-cover .scenario-hero-stats > span + span::before {
    height: 40px;
  }

  .immersive-cover .scenario-hero-stats b {
    display: block;
    margin-bottom: 5px;
    font-size: 23px;
  }
}
