/**
 * WEP-CS-LAUNCH-019b — VISIBLE light experiment for course landings (kompozitsiya + akvarelnaya-zhivopis / Цвет).
 * References: Dom Art “Matter of Light” pearlescent field + thin minimalist sans.
 * Local background: /assets/light-experiment/matter-of-light-caustic.jpg
 */

body.cs-light-exp {
  --cs-ink: #2c2a28;
  --cs-muted: #6e6860;
  --cs-accent: #8a4f3a;
  --cs-accent-deep: #6d3c2c;
  /* Cool pearl matched to Owner hero artwork bottom (#d9e3ec → lifted) */
  --cs-cream: #f4f7fb;
  --cs-cream-2: #eef3f8;
  --cs-paper: #fbfcfd;
  --cs-line: #e2e8ef;
  --cs-hero-end: #e8eef5;
  --cs-pearl: #f2f6fa;
  --cs-font: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--cs-ink);
  font-family: var(--cs-font);
  font-weight: 300;
  letter-spacing: 0.02em;
  background-color: var(--cs-pearl);
  /* Opaque cool wash over caustic — no warm/dark band under the hero */
  background-image:
    linear-gradient(
      180deg,
      rgba(242, 246, 250, 0.985) 0%,
      rgba(246, 249, 252, 0.98) 40%,
      rgba(242, 246, 250, 0.985) 100%
    ),
    url("/assets/light-experiment/matter-of-light-caustic.jpg");
  background-size: cover, cover;
  background-position: center top, 60% 40%;
  background-attachment: scroll, fixed;
  background-repeat: no-repeat;
}

/* Soft cool pearl / prism wash (keeps Matter-of-Light vibe without warm seam) */
body.cs-light-exp::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    linear-gradient(
      125deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(235, 245, 255, 0.22) 28%,
      rgba(255, 255, 255, 0.35) 48%,
      rgba(245, 250, 255, 0.2) 68%,
      rgba(255, 255, 255, 0.7) 100%
    ),
    radial-gradient(ellipse 70% 45% at 18% 12%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 20%, rgba(230, 240, 255, 0.22), transparent 65%);
  mix-blend-mode: soft-light;
}

body.cs-light-exp::after {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background: repeating-linear-gradient(
    -32deg,
    transparent 0 36px,
    rgba(255, 255, 255, 0.1) 36px 38px,
    transparent 38px 78px,
    rgba(255, 245, 230, 0.04) 78px 81px
  );
}

@media (prefers-reduced-motion: no-preference) {
  body.cs-light-exp::before {
    animation: cs-light-drift 32s ease-in-out infinite alternate;
  }
}
@keyframes cs-light-drift {
  from { transform: translate3d(-2%, 0, 0); }
  to { transform: translate3d(2.5%, 1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body.cs-light-exp::before,
  body.cs-light-exp::after {
    animation: none !important;
  }
  body.cs-light-exp {
    background-attachment: scroll, scroll;
  }
}

/* Do not force stacking that traps position:fixed hero art */
body.cs-light-exp > .cs-ask {
  z-index: 50;
}

/* Header: frosted warm white ribbon (scrolls with page over fixed hero) */
body.cs-light-exp .cs-top {
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(210, 200, 188, 0.65);
}
body.cs-light-exp .cs-top__nav a {
  font-weight: 300;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  text-transform: uppercase;
}

/* —— Hero stage is transparent; artwork is fixed (see lfm-chrome) —— */
body.cs-light-exp .cs-hero--parallax {
  color: var(--cs-ink);
  background: transparent !important;
  border: 0 !important;
  border-bottom: 0 !important;
}
/* Soft haze on the fixed veil → same pearl as the text sheet */
body.cs-light-exp .cs-hero__veil {
  background:
    linear-gradient(
      to top,
      rgba(242, 246, 250, 0.92) 0%,
      rgba(242, 246, 250, 0.55) 14%,
      rgba(232, 238, 245, 0.28) 32%,
      rgba(255, 255, 255, 0.06) 58%,
      rgba(255, 255, 255, 0) 100%
    );
}
/* Scrolling fog band at bottom of the hero stage — short, stays under the plaque */
body.cs-light-exp .cs-hero--parallax::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(14vh, 110px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(242, 246, 250, 0.95) 0%,
    rgba(242, 246, 250, 0.4) 55%,
    rgba(242, 246, 250, 0) 100%
  );
}
body.cs-light-exp .cs-hero--parallax .cs-hero__inner {
  /* Same content width as .cs-author inside .cs-main (max − side padding) */
  width: 100%;
  max-width: calc(var(--cs-max) - 2 * clamp(16px, 4vw, 28px));
  box-sizing: border-box;
  margin: 0 auto; /* horizontal center; vertical via hero flex */
  padding: 12px 20px 16px;
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.52);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 48px rgba(40, 30, 20, 0.06);
}
body.cs-light-exp .cs-hero--parallax .cs-tag,
body.cs-light-exp .cs-hero--parallax .cs-eyebrow,
body.cs-light-exp .cs-hero--parallax .cs-lede,
body.cs-light-exp .cs-hero--parallax .cs-meta {
  color: var(--cs-muted);
}
body.cs-light-exp .cs-hero--parallax h1 {
  color: var(--cs-ink);
  font-weight: 200;
  letter-spacing: 0.04em;
  text-transform: none;
}
body.cs-light-exp .cs-tag {
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--cs-muted) !important;
}
body.cs-light-exp .cs-eyebrow {
  font-weight: 200;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}
body.cs-light-exp .cs-lede {
  font-weight: 300;
  color: #4a453f !important;
}
body.cs-light-exp .cs-meta li {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(160, 140, 120, 0.35);
  color: var(--cs-ink);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* Body copy — Dom Art thin editorial */
body.cs-light-exp .cs-main,
body.cs-light-exp .cs-foot {
  font-family: var(--cs-font);
  font-weight: 300;
}
body.cs-light-exp .cs-main h2,
body.cs-light-exp .cs-cta h2 {
  font-weight: 200;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
}
body.cs-light-exp .cs-main p,
body.cs-light-exp .cs-main li,
body.cs-light-exp .cs-cta__note {
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #3f3b36;
}

body.cs-light-exp .cs-author,
body.cs-light-exp .cs-week,
body.cs-light-exp .cs-cta {
  background: rgba(255, 252, 248, 0.88);
  border-color: rgba(220, 210, 198, 0.9);
  box-shadow: 0 16px 40px rgba(40, 28, 18, 0.06);
  backdrop-filter: blur(6px);
}

body.cs-light-exp .cs-author strong {
  font-weight: 500;
  letter-spacing: 0.03em;
}
body.cs-light-exp .cs-btn {
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

body.cs-light-exp .cs-lead-form .cs-field > label {
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
body.cs-light-exp .cs-lead-form .cs-field > input,
body.cs-light-exp .cs-lead-form .cs-field > textarea {
  font-weight: 300;
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 900px) {
  body.cs-light-exp {
    background-attachment: scroll, scroll;
  }
}
