.journey{
  --temple-bg:#151311;--rail-height:710svh;--chapter-light:1;--chapter-lift:0px;
  position:relative;background:var(--temple-bg);color:var(--cream);scroll-margin-top:calc(0px - var(--nav-h))
}
.journey-frame{position:relative;isolation:isolate}
.journey{background:var(--ink)}
.journey-visual{display:none;position:absolute;inset:0;z-index:0;isolation:isolate;pointer-events:none}
.is-guided .journey-frame{background:var(--ink)}
.is-guided .journey-visual{
  display:block;opacity:var(--scene-presence,1);
  mask-image:linear-gradient(180deg,transparent,rgba(0,0,0,.55) calc(var(--entry-feather,12%) * .43),#000 var(--entry-feather,12%),#000 calc(100% - var(--exit-feather,10%)),rgba(0,0,0,.61) calc(100% - var(--exit-feather,10%) * .4),transparent);
}
.journey:not(.is-guided) .journey-chapter:first-child::after,.journey:not(.is-guided) .journey-chapter:last-child::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none}
.journey:not(.is-guided) .journey-chapter:first-child::after{background:linear-gradient(to bottom,var(--ink),transparent 18%)}
.journey:not(.is-guided) .journey-chapter:last-child::after{background:linear-gradient(to top,var(--ink),transparent 17%)}
.journey-stage{display:none;position:absolute;z-index:0;inset:0;overflow:hidden;background:var(--temple-bg)}
.journey-stage::after,.journey-stage::before{content:"";position:absolute;pointer-events:none;background:url("assets/pantheon/grain.png") repeat;background-size:256px 256px;mix-blend-mode:soft-light}
.journey-stage::after{inset:0;z-index:4;opacity:.5}
.journey-stage::before{inset:-32px;z-index:5;opacity:.2;animation:dmr-grain-breathe 1s steps(1,end) infinite;animation-play-state:paused}
.journey.grain-playing .journey-stage::before{animation-play-state:running}
body.modal-open .journey-stage::before,body.dmr-loading .journey-stage::before{animation-play-state:paused}
@keyframes dmr-grain-breathe{0%,100%{transform:translate(0,0)}12.5%{transform:translate(-18px,9px)}25%{transform:translate(12px,-22px)}37.5%{transform:translate(-8px,-5px)}50%{transform:translate(23px,16px)}62.5%{transform:translate(6px,-15px)}75%{transform:translate(-24px,21px)}87.5%{transform:translate(16px,4px)}}
.journey-stage canvas,.journey-stage img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover}
.journey-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--film-x,70%) 50%;visibility:hidden;pointer-events:none}
.journey-film.is-current{visibility:visible}
.journey-stage .journey-sequence{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--film-x,70%) 50%;visibility:hidden;opacity:1;transition:none}
.journey-sequence.is-current{visibility:visible}
.journey-stage canvas{z-index:1;opacity:0;transition:opacity .45s ease}
.journey-stage .journey-motes{z-index:2;opacity:1;transition:none;object-position:var(--film-x,70%) 50%;pointer-events:none}
.journey-stage .journey-depth-soft{
  z-index:2;opacity:var(--chapter-light,1);visibility:hidden;pointer-events:none;
  transition:none;object-position:var(--film-x,70%) 50%;filter:blur(18px);
  --soft-depth-mask:linear-gradient(to right,#000 20%,rgba(0,0,0,.88) 30%,rgba(0,0,0,.35) 45%,transparent 59%);
  mask-image:var(--soft-depth-mask);-webkit-mask-image:var(--soft-depth-mask);
}
.journey-depth-soft.is-current{visibility:visible}
.journey[data-renderer=sequence] .journey-reading-glass{display:none}
.journey[data-copy-side=right] .journey-depth-soft{--soft-depth-mask:linear-gradient(to left,#000 20%,rgba(0,0,0,.88) 30%,rgba(0,0,0,.35) 45%,transparent 59%)}
.journey[data-renderer=live] .journey-stage canvas{opacity:1}
.journey-chapter{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:clamp(480px,68svh,850px);padding:clamp(50px,7vw,125px) var(--gutter);overflow:hidden;background:#171512}
.chapter-plate{position:absolute;inset:0;width:100%;height:100%;z-index:-2}
.chapter-plate img{width:100%;height:100%;max-width:none;object-fit:cover}
.journey-chapter::before,.journey-visual::after{content:"";position:absolute;inset:0;pointer-events:none}
.journey-chapter::before{z-index:-1;background:linear-gradient(90deg,rgba(10,11,12,.9),rgba(12,12,12,.62) 30%,transparent 70%)}
.journey-visual{--reading-shade:linear-gradient(90deg,rgba(17,14,13,.77),rgba(18,15,14,.61) 23%,rgba(19,16,14,.35) 38%,transparent 62%),linear-gradient(0deg,rgba(11,10,11,.60),transparent 18%,transparent 87%,rgba(13,12,12,.26))}
.journey-visual::after{z-index:2;display:none;background:var(--reading-shade)}
.journey-reading-glass{display:none;position:absolute;z-index:1;inset:0 41% 0 0;pointer-events:none}
.is-guided .journey-reading-glass{display:block}
.journey-reading-glass{
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  --reading-falloff:linear-gradient(to right,#000 34%,rgba(0,0,0,.88) 51%,rgba(0,0,0,.35) 76%,transparent);
  -webkit-mask-image:var(--reading-falloff);mask-image:var(--reading-falloff);
}
.chapter-reading{width:min(44vw,670px)}
.chapter-reading h3{font-weight:410;letter-spacing:-.058em;line-height:1.02;font-size:clamp(44px,5.55vw,110px);color:#f8f5ec;max-width:14ch;text-wrap:balance}
.chapter-reading p{max-width:38ch;font-size:clamp(16px,1.25vw,23px);font-weight:400;letter-spacing:-.025em;line-height:1.57;margin-top:clamp(19px,2.4vh,35px);color:#eeebe4}
.chapter-reading .text-link{margin-top:clamp(15px,2vh,27px);font-size:clamp(13px,.94vw,17px);border-color:#d8c5a18c}.chapter-reading .text-link .icon{color:var(--light-gold)}
.journey.is-guided{height:var(--rail-height)}
.is-guided .journey-frame{position:sticky;top:0;height:100svh;overflow:hidden}
.is-guided .journey-visual::after,.is-guided .journey-stage{display:block}
.is-guided .journey-chapters{z-index:3;position:absolute;left:var(--gutter);top:51%;transform:translateY(-50%);pointer-events:none}
.is-guided .journey-chapter{min-height:0;overflow:visible;padding:0;background:none;opacity:var(--chapter-light);transform:translateY(var(--chapter-lift))}
.is-guided .journey-chapter::before,.is-guided .chapter-plate{display:none}
.is-guided .chapter-reading button{pointer-events:auto}.is-guided .journey-chapter[inert] button{pointer-events:none}
@media(min-width:741px) and (aspect-ratio > 1/1){
  .is-guided .journey-visual::before{
    content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
    background:var(--reading-shade);
    transform:scaleX(-1);opacity:var(--reading-right,0);
  }
  .is-guided .journey-visual::after{opacity:var(--reading-left,1)}
  .is-guided .journey-reading-glass{opacity:var(--chapter-light,1)}
  .journey[data-copy-side=right] .journey-reading-glass{
    inset:0 0 0 41%;
    --reading-falloff:linear-gradient(to left,#000 34%,rgba(0,0,0,.88) 51%,rgba(0,0,0,.35) 76%,transparent);
  }
  .journey.is-guided[data-copy-side=right] .journey-chapters{left:auto;right:var(--gutter)}
  .journey.is-guided[data-copy-side=right] .chapter-reading,
  .journey:not(.is-guided) .journey-chapter:nth-child(even) .chapter-reading{width:min(37vw,600px)}
  .journey:not(.is-guided) .journey-chapter:nth-child(even){justify-content:flex-end}
  .journey:not(.is-guided) .journey-chapter:nth-child(even)::before{transform:scaleX(-1)}
}
@media(max-width:740px),(max-aspect-ratio: 1/1){
  .journey-stage::after{opacity:.4}.journey-stage::before{opacity:.15}
  .journey-film,.journey-stage .journey-sequence,.journey-stage .journey-motes,.journey-stage .journey-depth-soft{object-position:50% 32%}
  .journey-stage .journey-depth-soft,.journey[data-copy-side=right] .journey-depth-soft{--soft-depth-mask:linear-gradient(to top,#000 16%,rgba(0,0,0,.74) 30%,transparent 56%)}
  .journey[data-rendered-tour] .journey-stage img,.journey[data-frame-tour] .journey-stage img{object-position:50% 32%}
  .journey{--rail-height:665svh}
  .journey-chapter{padding:32px var(--gutter);min-height:600px}.chapter-reading{width:auto;max-width:39ch}.chapter-reading h3{font-size:clamp(33px,8.4vw,56px);max-width:16ch}.chapter-reading p{font-size:clamp(14px,3.7vw,17px);line-height:1.46;margin-top:10px;max-width:39ch}.chapter-reading .text-link{margin-top:9px;font-size:12px}
.is-guided .journey-chapters{top:auto;bottom:clamp(40px,7svh,84px);left:var(--gutter);right:var(--gutter);transform:none}
  .journey-visual::after,.journey-chapter::before{background:linear-gradient(0deg,rgba(8,10,12,.96) 0%,rgba(10,11,12,.82) 20%,rgba(11,12,13,.65) 33%,rgba(12,13,14,.14) 51%,transparent 67%,rgba(10,11,12,.36) 100%)}
  .journey-reading-glass{inset:44% 0 0;--reading-falloff:linear-gradient(to top,#000 29%,rgba(0,0,0,.74) 53%,transparent)}
}
@media(max-width:360px){.chapter-reading h3{font-size:31px}}
@media(prefers-reduced-motion:reduce){.journey-stage canvas{transition:none}.journey-stage::before{animation:none}}
