/* Version: 1.1 | Date: 2026-10-13 | Author: Codex | Status: implemented | Change Summary: Integrate dummy middle-slide illustrations into the orbital field. */
    .visual{position:relative;aspect-ratio:1;min-width:0;width:min(100%,70vh);justify-self:center;display:grid;place-items:center;filter:drop-shadow(0 1.5rem 3rem rgba(0,0,0,.13))}
    .visual::before{content:"";position:absolute;inset:8%;border-radius:50%;background:radial-gradient(circle,var(--scene-glow),transparent 70%);filter:blur(12px);transition:transform 1.2s ease,opacity 1.2s ease}
    .orbital{position:absolute;inset:5%;border:1px solid var(--line);border-radius:50%;transform:rotate(-18deg) scaleX(.82);opacity:.6}
    .orbital::after{content:"";position:absolute;inset:8%;border:1px dashed var(--line);border-radius:50%}
    .memory-thread{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:3;pointer-events:none}
    .memory-thread .shadow{fill:none;stroke:var(--line);stroke-width:1.3;stroke-linecap:round}
    .memory-thread .drawn{fill:none;stroke:var(--gold);stroke-width:2.2;stroke-linecap:round;filter:drop-shadow(0 0 9px var(--gold))}
    .memory-thread .node{fill:var(--bg);stroke:var(--gold);stroke-width:2;transition:fill .5s ease,transform .5s ease;transform-origin:center}
    .memory-thread .node.is-past{fill:var(--gold)}
    .memory-thread .node.is-current{transform:scale(1.35);fill:var(--gold)}
    .scene-art{position:absolute;inset:13%;display:grid;place-items:center;opacity:0;transform:scale(.83) rotate(-5deg);transition:opacity 1s ease,transform 1.4s cubic-bezier(.16,1,.3,1);pointer-events:none}
    .scene-art.is-active{opacity:1;transform:scale(1) rotate(0)}
    .asset-tag{position:absolute;z-index:5;bottom:2%;left:50%;transform:translateX(-50%);white-space:nowrap;color:var(--fg);background:var(--bg);border:1px solid var(--line);border-radius:2rem;padding:.16rem .65rem;font-size:.75rem}
    .sunrise{width:72%;aspect-ratio:1;border-radius:50%;background:linear-gradient(155deg,rgba(240,194,117,.65),rgba(184,138,96,.08) 64%),radial-gradient(circle at 50% 50%,#e2bd87 0 14%,transparent 15%);position:relative;overflow:hidden}
    .sunrise::before,.sunrise::after{content:"";position:absolute;inset:auto -10% 6%;height:44%;border:1px solid var(--gold);border-radius:50% 50% 0 0;transform:rotate(-8deg);background:linear-gradient(transparent,rgba(25,72,64,.65))}
    .sunrise::after{bottom:-6%;transform:rotate(11deg);background:linear-gradient(transparent,rgba(6,40,42,.9))}
    .window{width:68%;height:74%;border:1px solid var(--gold);border-radius:42% 42% 2px 2px / 23% 23% 2px 2px;position:relative;background:linear-gradient(180deg,rgba(214,174,111,.22),rgba(35,77,72,.5));box-shadow:inset 0 0 0 1.1rem rgba(11,43,44,.36)}
    .window::before{content:"";position:absolute;top:0;bottom:0;left:50%;border-left:1px solid var(--gold)}
    .window::after{content:"";position:absolute;top:54%;right:0;left:0;border-top:1px solid var(--gold)}
    .book{position:absolute;width:38%;height:12%;bottom:24%;left:31%;background:linear-gradient(90deg,#9c6548 0 49%,#bf8b5a 50% 100%);clip-path:polygon(0 4%,49% 16%,50% 15%,100% 4%,100% 86%,50% 100%,0 86%);filter:drop-shadow(0 8px 15px #061b1b)}
    .tree{width:78%;height:78%;position:relative;display:grid;place-items:center}
    .tree::before{content:"";position:absolute;bottom:3%;width:9%;height:56%;background:linear-gradient(90deg,#8e6b53,#c29c69,#7b654e);clip-path:polygon(40% 0,75% 0,100% 100%,0 100%)}
    .tree::after{content:"";position:absolute;top:7%;width:78%;height:66%;border-radius:50% 50% 44% 44%;background:radial-gradient(circle at 25% 48%,rgba(218,185,113,.62) 0 3%,transparent 4%),radial-gradient(circle at 68% 20%,rgba(218,185,113,.64) 0 2.5%,transparent 3.5%),radial-gradient(circle at 78% 64%,rgba(218,185,113,.66) 0 2%,transparent 3%),radial-gradient(circle at 47% 30%,rgba(218,185,113,.66) 0 2.2%,transparent 3.2%),radial-gradient(circle at 50% 50%,#6f9c77,#2e645b 67%,transparent 70%);box-shadow:0 0 70px rgba(125,170,121,.18)}
    .legacy{width:76%;height:76%;position:relative;border-radius:50%;border:1px solid var(--gold);background:radial-gradient(circle at center,rgba(235,201,147,.19) 0 7%,transparent 8%),repeating-radial-gradient(circle at center,transparent 0 16%,rgba(221,191,142,.22) 16.15% 16.4%,transparent 16.55% 27%);box-shadow:0 0 75px rgba(225,188,128,.15)}
    .legacy::before,.legacy::after{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:var(--gold);box-shadow:0 0 18px var(--gold)}
    .legacy::before{top:17%;left:28%}.legacy::after{bottom:22%;right:16%}
/* Scope the composition to the Memorial; preserve the shared media/access styles. */
body.memorial-body{background:var(--bg);--scene-glow:rgba(46,92,82,.28)}
html[data-theme="light"] body.memorial-body{background:var(--bg);--scene-glow:rgba(215,187,140,.30)}
body.memorial-body .shell{width:min(100% - clamp(2rem,6vw,7rem),1500px);margin-inline:auto}
body.memorial-body .site-header{position:absolute;inset:0 0 auto;z-index:20;padding:1.2rem 0;border-bottom:1px solid var(--line)}
body.memorial-body .memorial{display:block;width:100%;padding:0;margin:0}
body.memorial-body .memorial::before{display:none}
body.memorial-body .journey-stage{display:block;width:100%;position:relative;background:radial-gradient(circle at 70% 50%,var(--scene-glow),transparent 39%),var(--bg)}
body.memorial-body .journey-composition{width:100%;display:block;position:relative;margin:0;min-height:100svh;padding:0}
body.memorial-body .journey-stage[data-presentation="pinned"] .journey-composition{position:sticky;top:0;height:100svh;overflow:hidden}
body.memorial-body .journey-stage[data-presentation] .journey-narrative{display:grid;position:relative;width:min(100% - clamp(2rem,6vw,7rem),1500px);margin:auto;align-items:center;min-height:100svh;padding:var(--header-space,7rem) 0 6rem;z-index:4}
body.memorial-body .journey-stop{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:clamp(2rem,7vw,8rem);align-items:center;grid-area:1/1;width:100%;max-width:none;margin:0;padding:0;border:0;min-height:0;text-align:start;background:none}
body.memorial-body .chapter-copy{min-width:0;max-width:39rem;grid-column:1;grid-row:1;align-self:center}
body.memorial-body .journey-stop-cue{display:none!important}
body.memorial-body .journey-stage[data-presentation="pinned"] .journey-stop{transition:opacity .24s ease}
body.memorial-body .journey-stage[data-presentation="pinned"] .journey-stop:not([data-stop-state="current"]){opacity:0;pointer-events:none}
body.memorial-body .journey-stop h1,body.memorial-body .journey-stop h2{font-family:Gulzar,Vazirmatn,serif;font-weight:400;line-height:1.75;letter-spacing:-.03em;text-wrap:balance;padding:.4em 0 .1em;margin:0;overflow-wrap:anywhere}
body.memorial-body .journey-stop h1{font-size:clamp(3.5rem,7vw,7.3rem)}
body.memorial-body .journey-stop h2{font-size:clamp(2.9rem,5.4vw,5.7rem);margin-bottom:.8rem}
body.memorial-body .journey-stop h1:focus,body.memorial-body .journey-stop h2:focus{outline:2px solid var(--focus);outline-offset:.3rem}
body.memorial-body .eyebrow{display:flex;align-items:center;gap:.8rem;font-size:.78rem;margin:0 0 1.2rem;color:var(--gold)}
body.memorial-body .eyebrow::before{content:"";width:2.2rem;height:1px;background:var(--gold)}
body.memorial-body .dates{font-size:clamp(1.05rem,1.8vw,1.35rem);margin:.15rem 0 1.8rem}
body.memorial-body .journey-stage[data-presentation] .lead{max-width:32ch;margin:0 0 1.5rem;font-size:clamp(1.08rem,1.7vw,1.38rem);line-height:2.05}
body.memorial-body .story-chapter .chapter-copy>p:not(.eyebrow):not(.notice){font-size:clamp(1.03rem,1.35vw,1.22rem);max-width:40ch;line-height:2.05}
body.memorial-body .notice{border:0;background:none;border-radius:0;padding:0;color:var(--muted);font-size:.83rem;text-align:start;max-width:38rem;margin:.7rem 0}
body.memorial-body .notice--simulated{color:var(--gold)}
body.memorial-body .scroll-prompt{margin-top:1rem;color:var(--gold);font-size:.87rem}
body.memorial-body .journey-stage[data-presentation] .portrait{grid-column:2;grid-row:1;width:min(36%,18rem);margin:0 auto;z-index:4;position:relative}
body.memorial-body .portrait img,body.memorial-body .portrait-art{box-shadow:0 0 0 12px rgba(217,188,130,.045),0 22px 80px rgba(0,0,0,.25)}
body.memorial-body .portrait figcaption{font-size:.7rem;line-height:1.7;min-width:100%;margin-top:.8rem}
body.memorial-body .chapter-visual{grid-column:2;grid-row:1;max-width:min(100%,34rem);width:100%;margin:auto;z-index:4}
body.memorial-body .chapter-media,body.memorial-body .chapter-video{margin:.75rem 0;max-width:100%}
body.memorial-body .chapter-illustration .chapter-scene{display:grid;place-items:center;position:relative;inset:auto;aspect-ratio:1;width:100%;height:auto;background:none;border:0;border-radius:0;overflow:visible}
body.memorial-body .chapter-illustration .chapter-scene::before,body.memorial-body .chapter-illustration .chapter-scene::after{content:none}
body.memorial-body .chapter-illustration .chapter-video-frame{aspect-ratio:1;background:none;border:0;border-radius:0;overflow:visible}
body.memorial-body .chapter-illustration .chapter-video-art{display:grid!important}
body.memorial-body .journey-stage[data-presentation="pinned"] .chapter-illustration{width:calc(var(--visual-size) * .74);max-width:100%;margin:.75rem auto}
@media(min-width:701px){
body.memorial-body .journey-stage[data-presentation="pinned"] .chapter-illustration{display:grid;grid-template-rows:1fr auto 1fr}
body.memorial-body .journey-stage[data-presentation="pinned"] .chapter-illustration::before{content:"";grid-row:1}
body.memorial-body .journey-stage[data-presentation="pinned"] .chapter-illustration>.chapter-scene,body.memorial-body .journey-stage[data-presentation="pinned"] .chapter-illustration>.chapter-video-frame{grid-row:2}
body.memorial-body .journey-stage[data-presentation="pinned"] .chapter-illustration-metadata{grid-row:3}
}
body.memorial-body .journey-stage[data-presentation="flow"] .chapter-illustration{width:min(100%,24rem);margin:.75rem auto}
body.memorial-body .journey-stage[data-presentation] .journey-artwork{display:grid;position:absolute;top:50%;left:max(calc((100vw - 1500px)/2),3vw);transform:translateY(-50%);width:min(calc((100vw - clamp(2rem,6vw,7rem) - clamp(2rem,7vw,8rem))*.528),70vh);aspect-ratio:1;height:auto;padding:0;margin:0;z-index:3;pointer-events:none}
body.memorial-body .scene-art{opacity:1;transform:none}
body.memorial-body .memory-thread .drawn{stroke-dasharray:var(--thread-length);stroke-dashoffset:calc(var(--thread-length)*(1 - var(--journey-progress,0)*.94 - .06))}
body.memorial-body .journey-artwork[data-has-media="true"] .scene-art{opacity:0}
body.memorial-body .journey-stage[data-presentation] .chapter-navigation{position:absolute;top:50%;left:clamp(.3rem,1.4vw,2rem);transform:translateY(-50%);z-index:10;margin:0;padding:0;width:auto;border:0;border-radius:0;background:none;box-shadow:none}
body.memorial-body .chapter-navigation ol{display:grid;gap:.5rem;margin:0;padding:0}
body.memorial-body .chapter-navigation li{width:auto}
body.memorial-body .chapter-navigation a{display:flex;width:44px;height:44px;min-width:44px;min-height:44px;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:1rem;color:var(--muted);background:none}
body.memorial-body .chapter-navigation a:hover{border-color:var(--gold)}
body.memorial-body .chapter-navigation a::before{content:"";width:.42rem;height:.42rem;border:1px solid currentColor;border-radius:50%}
body.memorial-body .chapter-navigation a[aria-current]{color:var(--gold)}
body.memorial-body .chapter-navigation a[aria-current]::before{background:var(--gold);transform:scale(1.3)}
body.memorial-body .chapter-navigation a span{display:none}
body.memorial-body .stage-footer{position:absolute;inset:auto 0 1.5rem;display:flex;z-index:8;align-items:center;justify-content:space-between;color:var(--muted);font-size:.8rem}
body.memorial-body .progress-wrap{min-width:min(45vw,300px)}
body.memorial-body .progress-track{height:2px}
body.memorial-body .journey-stage[data-compact] h1,body.memorial-body .journey-stage[data-compact] h2{font-size:clamp(2.4rem,5vw,4rem);line-height:1.75}
body.memorial-body .journey-stage[data-compact] .dates{margin:.2rem 0 .7rem}
body.memorial-body .journey-stage[data-compact] .lead{font-size:1.05rem;margin-bottom:.6rem}
@media(max-width:1000px){body.memorial-body .journey-stop{gap:1.5rem;grid-template-columns:minmax(0,1fr) minmax(0,.95fr)}body.memorial-body .journey-stage[data-presentation] .journey-artwork{width:min(43vw,65vh);left:4vw}}
@media(max-width:700px){
 body.memorial-body .site-header{padding:.85rem 0}body.memorial-body .wordmark{font-size:1.16rem}
 body.memorial-body .journey-stage[data-presentation] .journey-narrative{width:min(100% - 2.5rem,38rem);padding-bottom:8rem}
 body.memorial-body .journey-stop{display:flex;flex-direction:column;gap:.5rem}
 body.memorial-body .chapter-copy{order:1;text-align:center;width:100%}
 body.memorial-body .chapter-copy .eyebrow{justify-content:center;margin-bottom:.4rem}
 body.memorial-body .eyebrow::before{display:none}
 body.memorial-body .journey-stop h1{font-size:clamp(2.9rem,12vw,4.7rem)}body.memorial-body .journey-stop h2{font-size:clamp(2.5rem,10vw,4rem)}
 body.memorial-body .journey-stage[data-presentation] .lead,body.memorial-body .story-chapter .chapter-copy>p:not(.eyebrow):not(.notice){max-width:36ch;margin:.3rem auto;font-size:1rem;line-height:1.9}
 body.memorial-body .notice{text-align:center;font-size:.75rem;margin:.35rem auto}
 body.memorial-body .dates{margin:0 0 .5rem;font-size:.92rem}
 body.memorial-body .journey-stage[data-presentation] .portrait{order:0;width:min(24vw,12vh)}
 body.memorial-body .chapter-visual{order:0;width:min(60vw,30vh)}
 body.memorial-body .journey-stage[data-presentation] .journey-artwork{width:min(68vw,32vh);top:var(--header-space,5rem);left:50%;transform:translateX(-50%)}
 body.memorial-body .journey-stage[data-presentation] .chapter-navigation{top:auto;bottom:3.8rem;left:50%;transform:translateX(-50%);max-width:100%;}
 body.memorial-body .chapter-navigation ol{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem}
 body.memorial-body .stage-footer{bottom:.8rem}body.memorial-body .footer-hint{display:none}body.memorial-body .progress-wrap{width:100%}
}
/* Unfittable chapters keep their full reading order alongside a sticky visual thread. */
body.memorial-body .journey-stage[data-presentation="flow"] .journey-composition{display:grid;grid-template-columns:minmax(0,1fr) clamp(64px,24vw,280px);gap:clamp(.5rem,2vw,1.5rem);width:min(100% - 2rem,1500px);margin:auto;padding:var(--header-space,7rem) 0 3rem;align-items:start}
body.memorial-body .journey-stage[data-presentation="flow"] .journey-narrative{display:block;grid-column:1;grid-row:1;width:100%;padding:0;min-height:0}
body.memorial-body .journey-stage[data-presentation="flow"] .journey-stop{display:block;min-height:80svh;opacity:1;pointer-events:auto;padding:2rem 0;border-bottom:1px solid var(--line);text-align:start}
body.memorial-body .journey-stage[data-presentation="flow"] .chapter-copy{text-align:start;max-width:none}
body.memorial-body .journey-stage[data-presentation="flow"] .chapter-copy .eyebrow{justify-content:flex-start}
body.memorial-body .journey-stage[data-presentation="flow"] h1,body.memorial-body .journey-stage[data-presentation="flow"] h2{font-size:clamp(2rem,5vw,4rem)}
body.memorial-body .journey-stage[data-presentation="flow"] .portrait{width:min(60%,14rem);margin:1.5rem auto}
body.memorial-body .journey-stage[data-presentation="flow"] .chapter-visual{width:100%;max-width:34rem}
body.memorial-body .journey-stage[data-presentation="flow"] .visual-panel{position:sticky;top:1rem;grid-column:2;grid-row:1;width:100%;min-width:0;padding-top:2rem}
body.memorial-body .journey-stage[data-presentation="flow"] .journey-artwork{position:relative;inset:auto;width:100%;transform:none}
body.memorial-body .journey-stage[data-presentation="flow"] .journey-artwork .scene-art{opacity:1}
body.memorial-body .journey-stage[data-presentation="flow"] .chapter-navigation{position:static;transform:none;margin:.75rem 0;width:100%}
body.memorial-body .journey-stage[data-presentation="flow"] .chapter-navigation ol{display:flex;flex-wrap:wrap;justify-content:center;gap:0}
body.memorial-body .journey-stage[data-presentation="flow"] .stage-footer{position:static;display:block;width:100%;margin:0;font-size:.7rem}
body.memorial-body .journey-stage[data-presentation="flow"] .footer-hint{display:none}
body.memorial-body .journey-stage[data-presentation="flow"] .progress-wrap{min-width:0;width:100%;display:flex;flex-direction:column;align-items:stretch;gap:.3rem}
body.memorial-body .journey-stage[data-presentation="flow"] .progress-track{flex:none;width:100%}
body.memorial-body .journey-stage[data-presentation="flow"] .progress-number{text-align:center}
body.memorial-body .journey-stage:not([data-presentation]) .journey-narrative{display:block;width:min(100% - 2rem,60rem);margin:0 auto;padding-top:7rem}
body.memorial-body .journey-stage:not([data-presentation]) .journey-stop{display:block;padding:2rem 0;border-bottom:1px solid var(--line)}
body.memorial-body .journey-stage:not([data-presentation]) .portrait{width:min(60%,18rem);margin:2rem auto}
body.memorial-body .journey-stage:not([data-presentation]) .journey-artwork,body.memorial-body .journey-stage:not([data-presentation]) .stage-footer{display:none}
body.memorial-body .journey-stage:not([data-presentation]) .chapter-navigation{position:static;transform:none;padding:1rem;margin:0 auto;width:min(100% - 2rem,60rem)}
body.memorial-body .journey-stage:not([data-presentation]) .chapter-navigation ol{display:flex;flex-wrap:wrap}
body.memorial-body .journey-stage:not([data-presentation]) .chapter-navigation a{width:auto;height:auto;padding:.5rem}
body.memorial-body .journey-stage:not([data-presentation]) .chapter-navigation a .chapter-link-label{display:inline}
@media(prefers-reduced-motion:reduce){body.memorial-body *,body.memorial-body *::before,body.memorial-body *::after{transition:none!important;animation:none!important}}
@media print{body.memorial-body .journey-stage[data-presentation] .journey-composition,body.memorial-body .journey-stage[data-presentation] .journey-narrative,body.memorial-body .journey-stop{display:block!important;height:auto!important;position:static!important;min-height:0!important;padding:1rem!important}body.memorial-body .journey-stage{height:auto!important}body.memorial-body .journey-stop{visibility:visible!important;break-inside:avoid}body.memorial-body .visual-panel,body.memorial-body .journey-artwork,body.memorial-body .chapter-navigation,body.memorial-body .stage-footer,body.memorial-body .site-header{display:none!important}}
body.memorial-body .visual-panel{display:contents}

body.memorial-body .journey-stop{opacity:1}
body.memorial-body .journey-stage[data-presentation="pinned"] .journey-stop:not([data-stop-state="current"]){opacity:0}
@media print{body.memorial-body .journey-stop{opacity:1!important;transition:none!important}}
/* Explicitly replace every inherited layout property from the retired panel. */
body.memorial-body .journey-stage[data-presentation="pinned"] .journey-composition{display:block;grid-template-columns:none;gap:0;align-items:initial}
body.memorial-body .journey-stage[data-presentation] .journey-narrative{grid-column:auto;grid-row:auto;border:0}
body.memorial-body .journey-stage[data-presentation="pinned"] .journey-stop{align-self:center;animation:none;transform:none}
body.memorial-body .journey-stage[data-presentation] .chapter-navigation{left:calc(max((100vw - 1500px)/2,3vw) + 3rem)}
@media(max-width:700px){body.memorial-body .journey-stage[data-presentation] .chapter-navigation{left:50%}}
body.memorial-body .journey-stage[data-presentation="flow"] .chapter-navigation{max-height:40svh;overflow-y:auto;scrollbar-width:thin}
body.memorial-body .journey-stage[data-presentation="flow"] .visual-panel{display:block}
body.memorial-body .journey-stage{--shell-width:min(calc(100vw - clamp(2rem,6vw,7rem)),1500px);--column-gap:clamp(2rem,7vw,8rem);--visual-column:calc((var(--shell-width) - var(--column-gap)) * .5283);--visual-size:min(var(--visual-column),70vh)}
body.memorial-body .journey-stage[data-presentation="pinned"] .opening,body.memorial-body .journey-stage[data-presentation="pinned"] .story-chapter{margin:0;padding:0;border:0}
body.memorial-body .journey-stage[data-presentation="pinned"] .journey-artwork{width:var(--visual-size);left:calc((100vw - var(--shell-width))/2 + var(--visual-column)/2);transform:translate(-50%,-50%)}
body.memorial-body .journey-stage[data-presentation="pinned"] .portrait{width:calc(var(--visual-size) * .363)}
@media(max-width:1000px) and (min-width:701px){body.memorial-body .journey-stage{--column-gap:1.5rem;--visual-column:calc((var(--shell-width) - var(--column-gap)) * .4872)}}
@media(max-width:700px){body.memorial-body .journey-stage[data-presentation="pinned"] .journey-artwork{width:min(68vw,32vh);left:50%;top:var(--header-space,5rem);transform:translateX(-50%)}body.memorial-body .journey-stage[data-presentation="pinned"] .portrait{width:min(24vw,12vh)}}
body.memorial-body .journey-stage[data-presentation] .chapter-navigation::after,body.memorial-body .journey-stage[data-presentation] .journey-artwork::after{display:none}
body.memorial-body .journey-stage[data-presentation] .chapter-navigation ol{display:grid}
body.memorial-body .journey-stage[data-presentation] .chapter-media-frame,body.memorial-body .journey-stage[data-presentation] .chapter-media>.chapter-media-art,body.memorial-body .journey-stage[data-presentation] .chapter-video-frame{max-width:none}
@media(max-width:700px){body.memorial-body .journey-stage[data-presentation] .chapter-navigation ol{display:flex}}
body.memorial-body .journey-stage[data-presentation="flow"] .chapter-navigation ol{display:flex}
body.memorial-body .site-header{position:fixed;background:var(--bg)}
body.memorial-body .memorial-disclosure{max-width:28ch;white-space:normal;font-size:.73rem;line-height:1.7}
body.memorial-body .journey-artwork .scene-art{opacity:0;transform:scale(.98);transition:opacity .24s ease,transform .32s ease-out}
body.memorial-body .journey-artwork .scene-art.is-active{opacity:1;transform:scale(1)}
body.memorial-body .journey-stage[data-presentation="flow"] .journey-artwork .scene-art:not(.is-active){opacity:0}
body.memorial-body .journey-stage[data-presentation="pinned"] .journey-stop[data-stop-state="current"]{transform:translateY(var(--reading-shift,0px))}
@media(max-width:700px){body.memorial-body .memorial-disclosure{display:inline-block;font-size:.6rem;max-width:20ch}.memorial-body .site-header{gap:.5rem}}
body.memorial-body .journey-stage[data-presentation="pinned"] .journey-artwork[data-has-media="true"] .scene-art{opacity:0}
body.memorial-body .journey-stage[data-presentation="flow"] .visual-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:.75rem}
body.memorial-body .journey-stage[data-presentation="flow"] .visual-panel>.journey-artwork{grid-area:1/1}
body.memorial-body .journey-stage[data-presentation="flow"] .visual-panel>.portrait{grid-area:1/1;align-self:center;justify-self:center;width:36.3%;margin:0;z-index:4;opacity:0;pointer-events:none}
body.memorial-body .journey-stage[data-presentation="flow"] .visual-panel[data-opening-active="true"]>.portrait{opacity:1;pointer-events:auto}
body.memorial-body .journey-stage[data-presentation="flow"] .visual-panel[data-opening-active="true"] .scene-art{opacity:0}
body.memorial-body .journey-stage[data-presentation="flow"] .visual-panel>.portrait figcaption{font-size:.6rem;line-height:1.5;margin-top:.4rem}
body.memorial-body .journey-stage[data-presentation="flow"] .visual-panel>.chapter-navigation{grid-row:2;margin:0}
body.memorial-body .journey-stage[data-presentation="flow"] .visual-panel>.stage-footer{grid-row:3}
@media(max-width:700px){body.memorial-body .journey-stage[data-presentation="pinned"] .chapter-navigation{width:max-content;max-width:calc(100% - 2rem)}body.memorial-body .journey-stage[data-presentation="pinned"] .chapter-navigation ol{flex-wrap:nowrap}}
body.memorial-body .journey-stage[data-presentation][data-compact] h1,body.memorial-body .journey-stage[data-presentation][data-compact] h2{font-size:clamp(1.8rem,5vw,3rem);line-height:1.75}
@media(max-width:700px){body.memorial-body .journey-stage{--visual-size:min(50vw,22svh)}body.memorial-body .journey-stage[data-presentation="pinned"] .journey-artwork{width:var(--visual-size);top:var(--visual-top,var(--header-space,5rem));transform:translate(-50%,-50%)}body.memorial-body .journey-stage[data-presentation="pinned"] .portrait{width:calc(var(--visual-size) * .363)}}
@media(max-width:360px){body.memorial-body .journey-stage{--visual-size:min(50vw,16svh)}}
body.memorial-body .journey-stage[data-presentation="flow"] .visual-panel>.portrait figcaption{position:absolute;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(24vw);min-width:0}
body.memorial-body .journey-stage[data-presentation="flow"] .visual-panel{top:var(--header-space,1rem)}
@media(min-width:1001px){body.memorial-body .journey-stage[data-compact]{--visual-size:min(var(--visual-column),38vw,52svh,calc(100svh - var(--header-space,7rem) - 6rem))}}
body.memorial-body .journey-stage [id]{scroll-margin-top:var(--header-space,7rem)}
@media(max-width:700px){body.memorial-body .journey-stage[data-presentation="pinned"] .portrait figcaption{position:absolute;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(var(--visual-size) * .95);min-width:0;white-space:normal;text-align:center;font-size:.6rem;line-height:1.7;margin-top:.4rem;padding:.2rem .6rem;border:1px solid var(--line);border-radius:2rem;background:var(--surface)}}
body.memorial-body .journey-stage .lead{font-weight:400}
body.memorial-body .journey-stage[data-presentation="pinned"] .journey-composition::before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,transparent 0 49.93%,var(--line) 50%,transparent 50.07%);opacity:.26;pointer-events:none;z-index:0}
body.memorial-body .journey-stage[data-presentation="flow"] h1,body.memorial-body .journey-stage[data-presentation="flow"] h2{font-size:clamp(1.75rem,5vw,4rem)}
@media(max-width:700px){body.memorial-body .journey-stage[data-presentation="pinned"] .journey-composition::before{display:none}}
body.memorial-body .journey-stage[data-presentation="pinned"] .journey-composition{background:radial-gradient(circle at 70% 50%,var(--scene-glow),transparent 39%),var(--bg)}
/* Enlarged phone text must not turn the persistent utility header into a full screen. */
@media(max-width:700px){
 body.memorial-body .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem;padding:.45rem 0}
 body.memorial-body .header-actions{display:contents}
 body.memorial-body .wordmark{grid-column:1;grid-row:1;min-height:44px;line-height:1.4}
 body.memorial-body .theme-button{grid-column:2;grid-row:1;width:44px;height:44px;min-width:44px;min-height:44px;padding:0}
 body.memorial-body .memorial-disclosure{grid-column:1/-1;max-width:100%;justify-self:start;margin:0;padding:.15rem .55rem}
 body.memorial-body .sign-out-form{grid-column:1/-1}
 body.memorial-body .sign-out-btn{font-size:.7rem;line-height:1.4;padding:.15rem .6rem;min-height:44px}
}
@media(max-width:700px){body.memorial-body .journey-stage[data-presentation="pinned"] .portrait figcaption{bottom:0;margin:0}}
@media(max-width:380px){body.memorial-body .journey-stage[data-presentation="flow"] h1,body.memorial-body .journey-stage[data-presentation="flow"] h2{line-height:1.65}}
