/* Story: this page has its own visual layer, in three planes.
   1 plate     (atmosphere: the architectural image, very faint, partly off-canvas)
   2 portrait  (the person, asymmetric, overlapping the text grid)
   3 writing   (always on top, always fully readable)                              */

.page-story .story-plate{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:url("/assets/images/story/plate-wide.jpg") no-repeat;
  background-size:auto 130vh;
  background-position:right -14vw bottom -12vh;
  opacity:.08;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 10%,#000 72%,transparent 100%);
          mask-image:linear-gradient(to bottom,transparent 0,#000 10%,#000 72%,transparent 100%);
}
/* density follows the reader: stronger near the portrait, quiet behind the long passages, gone by the end */
@keyframes story-plate{
  0%{opacity:.065} 14%{opacity:.12} 38%{opacity:.045} 66%{opacity:.09} 100%{opacity:.015}
}
@supports (animation-timeline:scroll()){
  .page-story .story-plate{animation:story-plate linear both; animation-timeline:scroll(root)}
}

/* ---------- the page owns its structure: no framework template underneath ---------- */
.page-story{--story-link:var(--red); --story-ink:rgba(var(--white-rgb),.88); --story-gutter:clamp(1.25rem,5vw,3rem)}
.story-page{position:relative; z-index:1}
.story-hero,.story-body,.story-close{width:min(100%,64rem); margin-inline:auto; padding-inline:var(--story-gutter)}

.story-hero{padding-top:clamp(8rem,17vw,13rem); padding-bottom:clamp(2.5rem,5vw,4.5rem)}
.story-hero__kicker{margin:0 0 1.5rem; font:500 .95rem/1 var(--sans); color:var(--story-link)}
.story-hero__title{margin:0; font-size:clamp(2.2rem,8.2vw,7.2rem); color:var(--white); text-wrap:balance}
.story-hero__lede{margin:2rem 0 0; max-width:34rem; font:400 clamp(1.25rem,2.4vw,1.7rem)/1.4 var(--serif); color:var(--story-ink)}

.story-body{padding-bottom:clamp(3rem,6vw,5rem)}
.story-back{display:inline-block; margin-bottom:2.5rem; font-size:.95rem; color:var(--story-link); text-decoration:none}
.story-back:hover{text-decoration:underline}
.story-narrative p{max-width:36rem; margin:0 0 1.25rem; font-size:1.08rem; line-height:1.75; color:var(--story-ink)}
.story-narrative .story-signoff{margin-top:2.5rem}

/* the person: asymmetric, breaking out of the text column on the right */
.story-portrait{float:right; width:min(24rem,40%); margin:.4rem calc(-1 * clamp(1rem,6vw,5rem)) 1.5rem 2rem; shape-outside:margin-box}
.story-portrait img{display:block; width:100%; height:auto; aspect-ratio:4/5; object-fit:cover; object-position:50% 18%; filter:grayscale(1) contrast(1.04)}

/* the ending: one quiet choice, not a conversion block */
.story-close{padding-top:clamp(2.5rem,5vw,4rem); padding-bottom:clamp(5rem,10vw,9rem)}
.story-close::before{content:""; display:block; width:3.5rem; height:1px; margin-bottom:1.75rem; background:rgba(var(--white-rgb),.35)}
.story-close h2{margin:0 0 1.25rem; font-size:clamp(1.25rem,1.8vw,1.5rem); color:var(--white)}
.story-close p{max-width:36rem; margin:0 0 .7rem; font-size:1rem; line-height:1.65; color:var(--story-ink)}
.story-close a{color:var(--story-link); text-underline-offset:.2em}

@media (max-width:900px){ .story-portrait{float:none; width:72%; margin:2rem 0} }
@media (max-width:760px){
  .page-story .story-plate{background-image:url("/assets/images/story/plate-tall.jpg"); background-size:auto 78vh; background-position:right -6vw top 10vh; opacity:.10}
}
@media (prefers-reduced-motion:reduce){ .page-story .story-plate{animation:none} }

/* V7 editorial pass — refinement within the existing Story visual system. */
.story-hero__index{
  margin:0 0 1.25rem;
  font:600 .68rem/1 var(--sans);
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--story-link);
}
.story-hero__kicker{letter-spacing:.01em}
.story-hero__title{max-width:11ch; text-wrap:balance}
.story-hero__lede{max-width:38rem}
.story-narrative{position:relative}
.story-narrative p{max-width:37rem}
.story-portrait{border:1px solid rgba(var(--white-rgb),.12);padding:6px;background:rgba(var(--white-rgb),.025)}
.story-portrait img{filter:grayscale(1) contrast(1.03)}
.story-signoff{font-family:var(--serif);font-size:1.08rem !important}
.story-section-marker{
  margin:0 0 1.5rem;
  font:600 .68rem/1 var(--sans);
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--story-link);
}
.story-close__link{color:var(--story-link);font-weight:600}
.footer-newsletter{margin-top:1rem !important}
.footer-newsletter a{color:var(--story-link) !important;text-decoration:none}
@media (max-width:760px){
  .story-hero__title{max-width:100%}
  .story-portrait{width:100%;padding:4px}
}

