/*
 * Immersive editorial environments — IMAGE AS ENVIRONMENT
 * Not decorative cards. Full-bleed cinema plates, section worlds, hero atmosphere.
 */

/* ═══════════════════════════════════════════════════════════
   HERO — single art direction: Earth at night as the world
   ═══════════════════════════════════════════════════════════ */
.hero-v3__world {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-v3__world-img {
  position: absolute;
  inset: -6% 0 -18%;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center 48%;
  display: block;
  transform: scale(1.04);
  filter: saturate(1.15) contrast(1.08) brightness(0.92);
}

.hero-v3__world::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(241, 245, 249, 0.78) 0%,
      rgba(241, 245, 249, 0.52) 32%,
      rgba(241, 245, 249, 0.28) 58%,
      rgba(241, 245, 249, 0.72) 88%,
      rgba(241, 245, 249, 0.94) 100%
    ),
    radial-gradient(
      ellipse 70% 55% at 50% 12%,
      rgba(255, 255, 255, 0.55) 0%,
      transparent 70%
    );
}

.hero-v3__atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-v3__atmosphere .hero-v3__cloud,
.hero-v3__atmosphere .hero-v3__grain,
.hero-v3__atmosphere .hero-v3__particles {
  z-index: 2;
  opacity: 0.55;
}

body.landing-v2 .hero.hero-v3 {
  position: relative;
  isolation: isolate;
}

body.landing-v2 .hero.hero-v3 .hero-v3__inner,
body.landing-v2 .hero.hero-v3 .hero-v3__showcase-pin {
  position: relative;
  z-index: 3;
}

@media (prefers-color-scheme: dark) {
  .hero-v3__world-img {
    filter: saturate(1.2) contrast(1.12) brightness(0.75);
  }

  .hero-v3__world::after {
    background:
      linear-gradient(
        180deg,
        rgba(3, 5, 8, 0.82) 0%,
        rgba(3, 5, 8, 0.55) 34%,
        rgba(3, 5, 8, 0.35) 58%,
        rgba(3, 5, 8, 0.78) 88%,
        rgba(3, 5, 8, 0.95) 100%
      ),
      radial-gradient(
        ellipse 70% 50% at 50% 10%,
        rgba(15, 23, 42, 0.4) 0%,
        transparent 70%
      );
  }
}

@media (max-width: 900px) {
  .hero-v3__world-img {
    object-position: center 55%;
    filter: saturate(1.1) contrast(1.05) brightness(0.95);
  }

  .hero-v3__world::after {
    background: linear-gradient(
      180deg,
      rgba(241, 245, 249, 0.88) 0%,
      rgba(241, 245, 249, 0.62) 40%,
      rgba(241, 245, 249, 0.85) 100%
    );
  }
}

/* ═══════════════════════════════════════════════════════════
   CINEMA PLATES — full-bleed visual chapters
   ═══════════════════════════════════════════════════════════ */
.cinema {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.cinema__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cinema__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.03);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cinema.is-revealed .cinema__media img,
.cinema[data-reveal].is-revealed .cinema__media img {
  transform: scale(1);
}

.cinema__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(241, 245, 249, 0.35) 0%,
    rgba(15, 23, 42, 0.15) 35%,
    rgba(15, 23, 42, 0.72) 100%
  );
}

.cinema__veil--dark {
  background: linear-gradient(
    180deg,
    rgba(3, 5, 8, 0.25) 0%,
    rgba(3, 5, 8, 0.45) 40%,
    rgba(3, 5, 8, 0.82) 100%
  );
}

.cinema__copy {
  position: relative;
  z-index: 2;
  width: min(920px, 92vw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  color: #f8fafc;
}

.cinema__copy:not(.cinema__copy--light) {
  color: #0f172a;
}

.cinema__copy--light {
  color: #f8fafc;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.cinema__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.cinema__title {
  margin: 0;
  font-size: clamp(2.1rem, 5.2vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 14ch;
}

.cinema--newsroom .cinema__media img {
  object-position: center 30%;
  filter: saturate(1.05) contrast(1.05);
}

.cinema--city .cinema__media img {
  object-position: center 45%;
  filter: saturate(1.1) contrast(1.08) brightness(0.88);
}

.cinema--ai .cinema__media img {
  object-position: center 35%;
  filter: saturate(1.15) contrast(1.1) brightness(0.75);
}

@media (max-width: 700px) {
  .cinema {
    min-height: min(62vh, 520px);
  }

  .cinema__title {
    max-width: 18ch;
  }
}

/* ═══════════════════════════════════════════════════════════
   SIGNAL SECTION — typography manifesto (no photo cards)
   ═══════════════════════════════════════════════════════════ */
.section-signal {
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.signal-manifesto {
  max-width: 40rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.signal-manifesto h2 {
  margin: 0 0 1rem;
}

.signal-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  max-width: min(1040px, 94vw);
  margin: 0 auto;
}

.signal-pillar h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  letter-spacing: -0.02em;
}

.signal-pillar p {
  margin: 0;
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .signal-pillars {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: left;
  }
}

/* ═══════════════════════════════════════════════════════════
   SUDO AI — section as environment
   ═══════════════════════════════════════════════════════════ */
.section-sudo-env {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(4rem, 9vw, 6.5rem) !important;
  padding-bottom: clamp(4rem, 9vw, 6.5rem) !important;
}

.section-sudo-env__world {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section-sudo-env__world img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.28;
  filter: saturate(1.1) contrast(1.05);
}

.section-sudo-env__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(241, 245, 249, 0.94) 0%,
      rgba(241, 245, 249, 0.82) 42%,
      rgba(241, 245, 249, 0.55) 100%
    );
}

.section-sudo-env > *:not(.section-sudo-env__world):not(.section-sudo-env__veil) {
  position: relative;
  z-index: 2;
}

.section-sudo-env #sudo-heading {
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.sudo-env-copy {
  max-width: 36rem;
}

.sudo-env-copy .sudo-block {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

@media (prefers-color-scheme: dark) {
  .section-sudo-env__world img {
    opacity: 0.2;
    filter: brightness(0.7) saturate(1.05);
  }

  .section-sudo-env__veil {
    background: linear-gradient(
      105deg,
      rgba(3, 5, 8, 0.94) 0%,
      rgba(3, 5, 8, 0.82) 45%,
      rgba(3, 5, 8, 0.55) 100%
    );
  }

  .sudo-env-copy .sudo-block {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL INTEL — deepen atmospheric back (existing globe stays)
   ═══════════════════════════════════════════════════════════ */
body.landing-v2 .global-intel__atmo--back {
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(241, 245, 249, 0.35) 100%),
    url("../assets/images/global-satellite-earth.jpg");
  background-size: cover;
  background-position: center 40%;
  opacity: 0.22;
  filter: saturate(1.15);
}

@media (prefers-color-scheme: dark) {
  body.landing-v2 .global-intel__atmo--back {
    opacity: 0.14;
    filter: saturate(0.95) brightness(0.65);
  }
}

/* ═══════════════════════════════════════════════════════════
   DOWNLOAD — full-bleed CTA environment
   ═══════════════════════════════════════════════════════════ */
.section-download {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(58vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-download__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section-download__atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.45;
  filter: saturate(1.05) contrast(1.05);
}

.section-download__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 50% 45%,
      rgba(241, 245, 249, 0.55) 0%,
      rgba(241, 245, 249, 0.88) 70%
    ),
    linear-gradient(180deg, rgba(241, 245, 249, 0.75) 0%, rgba(241, 245, 249, 0.92) 100%);
}

.section-download > *:not(.section-download__atmosphere) {
  position: relative;
  z-index: 1;
}

@media (prefers-color-scheme: dark) {
  .section-download__atmosphere img {
    opacity: 0.28;
    filter: brightness(0.6) saturate(0.95);
  }

  .section-download__atmosphere::after {
    background:
      radial-gradient(
        ellipse 70% 60% at 50% 45%,
        rgba(3, 5, 8, 0.45) 0%,
        rgba(3, 5, 8, 0.88) 72%
      ),
      linear-gradient(180deg, rgba(3, 5, 8, 0.75) 0%, rgba(3, 5, 8, 0.94) 100%);
  }
}

/* Quiet sections: typography / product only — no stock cards */
.process-section--quiet,
.section-premium--quiet {
  /* intentional: no photo media */
}

/* ═══════════════════════════════════════════════════════════
   LITE / REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .cinema__media img,
  .hero-v3__world-img {
    transform: none !important;
    transition: none !important;
  }
}

:root.lite-ui .hero-v3__world,
:root.lite-ui .cinema__media,
:root.lite-ui .section-sudo-env__world,
:root.lite-ui .section-download__atmosphere,
:root.lite-ui .global-intel__atmo--back {
  display: none;
}
