/* Opening brand field only. The lead (#lead) and all later chapters keep
   their existing palette, geometry and motion. The supplied photograph is
   already diffuse: no live blur, colour filter or generated replacement. */
.hero,
.insight,
.statement {
  --brand-ink: #f2f0e8;
  --brand-text: #e0e8dc;
  --story-green: #10291f;
  --story-field:
    radial-gradient(ellipse at 12% 8%, rgba(101, 144, 100, .16), transparent 65%),
    radial-gradient(ellipse at 90% 96%, rgba(63, 121, 101, .13), transparent 68%);
  color: var(--brand-ink);
  background-color: var(--story-green);
  background-image: var(--story-field);
  background-size: auto;
}

/* Normal document flow is also the no-JS and reduced-motion fallback. */
.hero__inner { overflow: hidden; }
.hero__photo {
  -webkit-mask-image: none;
  mask-image: none;
}
.hero__photo img { object-position: 50% 50%; }
.hero__photo::after { background: none; }
.hero__inner::before {
  background:
    radial-gradient(ellipse 75% 56% at 50% 42%, rgba(5, 25, 20, .35), transparent 94%),
    linear-gradient(180deg, rgba(7, 27, 22, .42), transparent 40%, #10291f 100%);
}
.hero__title { text-shadow: 0 2px 24px rgba(5, 24, 18, .18); }
.hero__scroll:hover { color: #fffdf5; }
.hero__arrow { filter: brightness(0) invert(1); }
.statement::after { content: none; }

/* Evidence remains a data matrix: quiet mint for the reference group,
   the existing warm categories and hollow diagnosis mark stay distinct. */
#insight .dots .d {
  background: radial-gradient(circle closest-side,
    rgba(207, 224, 195, .26) 0 46%,
    rgba(207, 224, 195, .10) 70%, transparent 96%);
}
#insight .dots .d--ok {
  background: radial-gradient(circle closest-side,
    rgba(207, 224, 195, .58) 0 52%,
    rgba(207, 224, 195, .22) 74%, transparent 94%) !important;
}
#insight .stats__note { color: #c9d5c9; }
#insight .stats__note a { text-underline-offset: .2em; }

@media (min-width: 900px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  html.depth-on .depth__stage { isolation: isolate; }
  html.depth-on .depth__stage::before {
    background-color: #10291f;
    background-image:
      radial-gradient(ellipse at 12% 8%, rgba(101, 144, 100, .16), transparent 65%),
      radial-gradient(ellipse at 90% 96%, rgba(63, 121, 101, .13), transparent 68%);
    background-size: auto;
  }
  html.depth-on .depth__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
      radial-gradient(ellipse 75% 56% at 50% 42%, rgba(5, 25, 20, .35), transparent 94%),
      linear-gradient(180deg, rgba(7, 27, 22, .42), rgba(7, 27, 22, .08) 40%),
      url("../assets/hero-photo/hero-brand-diffusion.png");
    background-position: center;
    background-size: cover;
    opacity: var(--brand-photo-o, 1);
    transform: translate3d(0, var(--brand-photo-y, 0%), 0) scale(1.12);
  }
  html.depth-on .depth .scene { z-index: 1; }
  /* Keep the real image for loading and the natural-flow fallback. Its
     persistent visual plane is now on the shared stage, outside copy fade. */
  html.depth-on .hero__photo { visibility: hidden; }
  html.depth-on .hero__inner::before { background: none; }
}

@media (max-width: 899.98px) {
  .hero__photo img { object-position: 52% 50%; }
}

@media (forced-colors: active) {
  .hero, .insight, .statement { --brand-ink: CanvasText; color: CanvasText; background: Canvas; }
  .hero__photo, .hero__inner::before,
  html.depth-on .depth__stage::before, html.depth-on .depth__stage::after { display: none; }
  #insight .stats__note { color: CanvasText; }
  #insight .dots .d--ok { background: CanvasText !important; }
}
