/* Full-screen life scenes navigate by scroll; static layouts expose all copy. */
.story-proof-journey { position: relative; isolation: isolate; }
.story-proof {
  position: relative;
  isolation: isolate;
  min-height: max(800px, 100svh);
  overflow: clip;
  background: #080808;
  color: #f5f5f3;
  padding: 22svh var(--edge) 80px;
}
.chapter-images,
.chapter-images img,
.chapter-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.chapter-images { z-index: -2; }
.chapter-images img:not(.chapter-environment-light) {
  opacity: 0;
  filter: saturate(.73) brightness(.85);
  transform: scale(1.025);
  transition: opacity .65s ease, transform 1s ease;
}
.chapter-images img:not(.chapter-environment-light).active { opacity: 1; transform: scale(1); }
.chapter-environment-light {
  opacity: 0;
  mix-blend-mode: screen;
  filter: saturate(1.1) brightness(1.8);
  pointer-events: none;
}
.chapter-environment-light.active { opacity: .35; }
.chapters-scroll .chapter-environment-light.active { animation: chapter-ambient-breathe 7.6s ease-in-out infinite; }
@keyframes chapter-ambient-breathe { 0%,100% { opacity: .08; } 50% { opacity: .95; } }
.chapter-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, #0505056b, transparent 21%),
    linear-gradient(90deg, #050505cd, transparent 85%),
    linear-gradient(0deg, #050505ef, transparent 70%);
}
.chapter-expressions { display: grid; gap: 48px; }
.chapters-scroll .chapter-expressions { gap: 0; }
.chapter-expression { opacity: 1; visibility: visible; }
.chapters-scroll .chapter-expression {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition: none;
}
.chapters-scroll .chapter-expression.active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none; }
.chapter-expression h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--type-scene);
  line-height: .98;
  letter-spacing: .008em;
  text-wrap: initial;
  color: #f5f5f3;
}
.chapter-expression > p {
  font: var(--type-lead)/1.55 var(--font-secondary);
  color: #d2cbc1;
  margin-top: var(--copy-gap);
  max-width: 44ch;
  text-wrap: pretty;
}
.chapter-product-note {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  width: clamp(220px, 22vw, 300px);
  margin: 48px 0 0 auto;
  color: #f5f5f3;
  pointer-events: none;
}
.chapter-product-note h2 { font: 600 clamp(22px, 1.55vw, 30px)/1.15 var(--font-body); letter-spacing: -.035em; margin: 0; white-space: nowrap; }
.chapter-product-note p { display: flex; align-items: baseline; gap: clamp(10px, .9vw, 14px); margin: clamp(10px, 1.1vw, 16px) 0 0; color: #d2cbc1; font: clamp(16px, 1.05vw, 18px)/1.25 var(--font-secondary); white-space: nowrap; }
.chapter-product-note strong { color: #f5f5f3; font-size: clamp(24px, 1.7vw, 32px); font-weight: 600; letter-spacing: -.045em; }
.chapter-product-rule { position: relative; overflow: hidden; width: 100%; height: 1px; margin-top: clamp(16px, 1.45vw, 22px); background: linear-gradient(90deg, #f5f5f380, #f5f5f333 35%, #f5f5f31a); }
.chapter-product-rule::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; background: linear-gradient(90deg, transparent, #f5f5f3b3, transparent); opacity: 0; transform: translateX(-110%); }
.chapters-scroll .chapter-product-rule::after { animation: chapter-rule-glint 7.6s ease-in-out infinite; }
.chapter-product-leader { position: relative; width: 1px; height: clamp(32px, 5svh, 56px); margin: clamp(12px, 1.3vw, 18px) 0 0 var(--chapter-leader-x, 50%); background: linear-gradient(#f5f5f326, #f5f5f380); }
.chapter-product-leader::after { content: ""; position: absolute; bottom: 0; left: -6px; width: 13px; height: 1px; background: #f5f5f380; }
.chapter-product-leader::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, #f5f5f3a6, transparent); opacity: 0; transform-origin: top; }
.chapters-scroll .chapter-product-leader::before { animation: chapter-leader-glint 7.6s ease-in-out infinite; }
.story-proof[inert] .chapter-environment-light,
.story-proof[inert] .chapter-product-rule::after,
.story-proof[inert] .chapter-product-leader::before { animation-play-state: paused; }
@keyframes chapter-rule-glint {
  0%,12% { transform: translateX(-110%); opacity: 0; }
  18% { opacity: .75; }
  40% { transform: translateX(340%); opacity: .75; }
  48%,100% { transform: translateX(340%); opacity: 0; }
}
@keyframes chapter-leader-glint {
  0%,38% { transform: translateY(-25%) scaleY(.25); opacity: 0; }
  45% { opacity: .7; }
  65%,100% { transform: translateY(90%) scaleY(.25); opacity: 0; }
}
.chapters-scroll .chapter-product-note { position: absolute; left: var(--chapter-note-x, 60%); top: var(--chapter-note-y, 40%); margin: 0; transform: translateY(-100%); }
html:not(.story-enhanced):not(.chapters-sticky) .chapter-product-leader { display: none; }
.chapters-scroll [data-chapter-copy="1"] { position: absolute; top: 12svh; left: 53%; right: var(--edge); }
.chapters-scroll[data-chapter-index="1"] .chapter-shade { background: linear-gradient(270deg, #050505cc, transparent 64%), linear-gradient(0deg, #050505de, transparent 55%); }
html.story-enhanced .story-proof-journey { position: absolute; inset: 0; z-index: 1; pointer-events: none; clip-path: inset(0 0 0 calc(100% - var(--why-reveal, 0) * 50%)); }
html.story-enhanced .story-proof { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: var(--proof-bg-opacity); pointer-events: auto; }
html.story-enhanced .chapter-copy,
html.story-enhanced .chapter-product-note { opacity: var(--proof-copy-opacity, 1); }
html.story-enhanced .story-proof[inert] { pointer-events: none; }
html.chapters-sticky .story-proof-journey { height: 360svh; }
html.chapters-sticky .story-proof { position: sticky; top: 0; height: 100svh; min-height: 660px; }
@media (min-width: 901px) {
  /* The product note floats over the photograph at ~36–68% of the stage;
     keep the reading column clear of it at every desktop width. */
  .chapter-expression > p { max-width: min(44ch, calc(67.5vw - 190px)); }
}
@media (max-width: 900px) {
  .story-proof { padding-top: 8svh; }
  .chapters-scroll [data-chapter-copy="1"] { top: 8svh; left: var(--edge); right: var(--edge); }
  .chapters-scroll .chapter-images { top: 32%; height: 68%; mask-image: linear-gradient(transparent, #000 15%); }
  .chapter-images img:not(.chapter-environment-light), .chapter-environment-light { object-position: 61% center; }
  .chapters-scroll[data-chapter-index="1"] .chapter-images img:not(.chapter-environment-light),
  .chapters-scroll[data-chapter-index="1"] .chapter-environment-light { object-position: 27% center; }
  .chapter-product-note { width: clamp(220px, 28vw, 260px); }
}
@media (max-width: 700px) {
  html.story-enhanced .story-proof-journey { clip-path: inset(calc(100% - var(--why-reveal, 0) * 50%) 0 0 0); }
  .story-proof { padding-top: 7svh; }
  .chapter-expression > p { max-width: 39ch; }
  .chapter-expression > p br { display: none; }
  .chapter-shade { background: linear-gradient(90deg, #05050577, transparent), linear-gradient(0deg, #050505d9, transparent 75%); }
  .chapters-scroll [data-chapter-copy="1"] { top: 7svh; left: var(--edge); right: var(--edge); }
  .chapter-product-note { width: min(240px, calc(100vw - var(--gutter) * 2)); }
}
@media (max-height: 800px) and (min-width: 701px) {
  .chapter-product-note { transform: translateY(calc(-100% + 4px)); }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-expression, .chapters-scroll .chapter-expression, .chapter-images img { transform: none; transition: none; }
  .chapter-environment-light { animation: none !important; opacity: .25 !important; }
  .chapter-environment-light:not(.active) { opacity: 0 !important; }
  .chapter-product-rule::after, .chapter-product-leader::before { animation: none !important; opacity: 0; }
}
@media print {
  .story-proof-journey { height: auto !important; }
  .story-proof { position: relative !important; height: auto !important; padding: 30px var(--gutter) !important; }
  .chapter-images, .chapter-shade { display: none !important; }
  .chapter-expressions { display: block; }
  .chapter-expression, .chapters-scroll .chapter-expression { position: relative; grid-area: auto; opacity: 1; visibility: visible; transform: none; }
  .chapter-expression h2, .chapter-expression > p { color: #111; }
  .chapter-product-note { position: relative; top: auto; right: auto; width: auto; margin: 32px 0 0; visibility: visible; opacity: 1; color: #111; }
  .chapter-product-note h2, .chapter-product-note p { color: #111; }
  .chapter-product-rule, .chapter-product-leader { display: none; }
  .chapter-environment-light { display: none; }
}

/* Scroll-linked scenes: life-chapters.js writes a continuous blend per scene
   (--chapter-o opacity, --chapter-s push-in, --chapter-y copy drift), so the
   frame changes with every pixel of scroll instead of switching at thresholds.
   No CSS transitions here: the scroll position is the timeline. */
.chapters-scroll .chapter-images img:not(.chapter-environment-light),
.chapters-scroll .chapter-images img:not(.chapter-environment-light).active {
  opacity: var(--chapter-o, 0);
  transform: scale(var(--chapter-s, 1));
  transition: none;
}
.chapters-scroll .chapter-environment-light,
.chapters-scroll .chapter-environment-light.active {
  opacity: var(--chapter-o, 0);
  animation: none;
}
.chapters-scroll .chapter-expression,
.chapters-scroll .chapter-expression.active {
  visibility: visible;
  opacity: var(--chapter-o, 0);
  transform: translate3d(0, var(--chapter-y, 0), 0);
}
.chapters-scroll .chapter-product-note,
html.story-enhanced .chapters-scroll .chapter-product-note {
  opacity: calc(var(--chapter-note-o, 1) * var(--proof-copy-opacity, 1));
}
