/* Final layout layer (Oct 30 2026 polish). One system for every chapter:
   same art treatment, same black level, same widths, type scale and rhythm. */
:root { --chapter-pad: clamp(72px, 9vh, 112px); --h2: clamp(40px, 3.6vw, 52px); --art-opacity: .5; }

/* Art: fills the chapter edge to edge, no visible rectangle. Every edge
   dissolves into the same canvas, so chapters flow into each other. */
.scene:not(.hero) > .scenery {
  inset: 0 !important; top: 0 !important; bottom: 0 !important;
  width: 100%; height: 100% !important; overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.scene:not(.hero) > .scenery img {
  position: absolute; inset: 0; top: 0; left: 0; transform: none; margin: 0;
  width: 100% !important; height: 100% !important; max-width: none; max-height: none;
  object-fit: cover; object-position: center; opacity: var(--art-opacity);
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  mask-composite: add; -webkit-mask-composite: source-over;
}
/* One readability scrim, identical everywhere: darker behind the text column. */
.scene:not(.hero) > .scenery::after {
  display: block; content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(5 8 7 / .55), rgb(5 8 7 / .2) 60%, rgb(5 8 7 / .35));
}
.closing > .scenery img { opacity: .7; object-fit: contain; }
.closing > .scenery::after { background: none; }

/* Chapter rhythm: identical vertical padding, content-driven height. */
.scene:not(.hero) > .scene-body { padding-block: var(--chapter-pad) !important; min-height: 0 !important; }
.scene:not(.hero) + .scene:not(.hero) > .scene-body { padding-top: calc(var(--chapter-pad) * .75) !important; }

/* One type scale for every chapter title, including the closing invitation. */
.scene .chapter-heading h2, .economics .chapter-heading h2, .invitation h2,
.expectations .chapter-heading h2 { font-size: var(--h2) !important; line-height: 1.07; }
.chapter-heading, .economics .chapter-heading, .expectations .chapter-heading { margin-bottom: 40px !important; }
.lens-explanation, .curve-explanation, .ai-explanation { font-size: 14px; max-width: 680px; }
.disclosure, .economics .disclosure { font-size: 11px; margin-top: 28px !important; }

/* Remove competing rules: hero footer rule and stray section lines. */
.hero-foot { border-top: 0; }

@media (max-width: 700px) {
  :root { --chapter-pad: 64px; --h2: clamp(32px, 9vw, 40px); --art-opacity: .42; }
  .scene:not(.hero) > .scenery img {
    mask-image: none; -webkit-mask-image: none;
  }
  .scene:not(.hero) > .scenery::after { background: rgb(5 8 7 / .45); }
  .closing > .scenery img { width: 170% !important; left: -35%; }
}
