/* Quiet journey: the landscape stays primary; chapters and tools open on demand. */
body[data-experience="journey"] .chapter-heading { top: 22%; left: 5%; right: auto; max-width: min(430px, 45vw); }
body[data-experience="journey"] .chapter-heading .eyebrow { font-size: .8125rem; letter-spacing: .13em; color: #ead9b5; }
body[data-experience="journey"] .chapter-heading h1 { margin: 14px 0 0; font: 400 clamp(38px, 4vw, 58px)/1.05 var(--serif); letter-spacing: -.015em; text-transform: none; max-width: 430px; }
body[data-experience="journey"] .chapter-heading > p { display: none; }
body[data-experience="journey"] .cinema-shade { background: linear-gradient(90deg, #071c155e, transparent 68%), linear-gradient(0deg, #071b13d9, #071b131c 28%, transparent 65%, #071b1340); }
body[data-experience="journey"] .journey-caption-wrap { left: 50%; right: auto; bottom: 116px; transform: translateX(-50%); width: min(620px, 58vw); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; text-align: center; pointer-events: none; }
body[data-experience="journey"] #journeyCaption { font-size: 1rem; line-height: 1.65; min-height: 0; max-height: 108px; margin: 0; color: #f7f5ed; text-shadow: 0 1px 7px #071b13, 0 2px 20px #071b13; overflow: auto; pointer-events: auto; }
#journeyAudioStatus { font-size: .75rem; letter-spacing: .02em; text-transform: none; margin-bottom: 6px; }
body[data-experience="journey"] .journey-transport { position: absolute; left: 50%; right: auto; bottom: 38px; transform: translateX(-50%); display: flex; gap: 3px; padding: 5px; border: 1px solid #f7f3dc30; border-radius: 40px; background: #193e3166; box-shadow: inset 0 1px #ffffff0d; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
body[data-experience="journey"] .journey-transport > button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; border: 0; border-radius: 50%; font-size: .875rem; }
body[data-experience="journey"] .journey-transport > button:hover { background: #ffffff14; }
body[data-experience="journey"] .journey-transport .round-control { width: 44px; height: 44px; background: #ad6245; border: 1px solid #e8c0a655; color: #fff7eb; box-shadow: none; font-size: 19px; }
.journey-transport svg, .scene-affordance svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
body[data-experience="journey"] .journey-transport #journeyChaptersButton { gap: 8px; min-width: 86px; margin-left: 5px; padding: 10px 13px; border-left: 1px solid #f7f3dc30; border-radius: 0 30px 30px 0; color: #ece9dc; font-variant-numeric: tabular-nums; }
#journeyChaptersButton svg { width: 14px; height: 14px; }
.scene-affordance { position: absolute; bottom: 37px; left: 5%; display: flex; flex-direction: column; align-items: flex-start; color: #e7e7d8; }
.scene-affordance button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 0; font-size: .875rem; }
.scene-affordance button:hover, .scene-affordance button[aria-expanded="true"] { color: #edc988; }
#journeyGestureHint { font-size: .75rem; color: #d3d9ca; line-height: 1.4; }
body[data-experience="journey"] .chapter-timeline { display: none; }
body[data-experience="journey"] .scene-kind { display: none; }
body[data-experience="journey"][data-story-scene="map"] .scene-kind { display: block; left: auto; right: 2%; bottom: 10px; max-width: 48vw; font-size: .75rem; color: #c5d0c2; text-align: right; line-height: 1.4; }
body[data-experience="journey"] .chapter-annotation { display: block; top: auto; right: auto; bottom: 116px; left: 5%; width: 300px; max-width: calc(100vw - 40px); max-height: min(470px, calc(100dvh - 220px)); overflow-y: auto; overscroll-behavior: contain; padding: 24px; border: 1px solid #ecedd340; border-radius: 22px; background: var(--ggo-glass); backdrop-filter: blur(26px) saturate(1.15); -webkit-backdrop-filter: blur(26px) saturate(1.15); box-shadow: 0 16px 50px #081c1366; pointer-events: auto; scrollbar-width: thin; }
body[data-experience="journey"] .chapter-annotation[hidden] { display: none; }
.scene-tools-close { position: absolute; top: 5px; right: 6px; width: 44px; height: 44px; font: 300 25px/1 var(--sans); border-radius: 50%; }
.scene-interactions > .eyebrow { display: block; padding-right: 28px; font-size: .8125rem; letter-spacing: .08em; }
.scene-interaction-hint { font-size: .875rem; line-height: 1.5; margin: 15px 0; color: #e9ede1; }
.scene-control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.scene-control-row button, .scene-extra-actions button { min-height: 44px; padding: 9px; font-size: .875rem; background: #ffffff09; border: 1px solid #ffffff26; border-radius: 10px; }
.scene-control-row button:hover, .scene-extra-actions button:hover { background: #ffffff21; }
.scene-control-row .scene-reset { grid-column: 1/-1; background: none; border: 0; color: #ead6ad; }
.scene-interaction-status { font-size: .75rem; color: #d6dcc9; margin: 12px 0 0; line-height: 1.5; }
.journey-replay-prompt { pointer-events: auto; text-align: center; color: #fff5df; }
.journey-replay-prompt > p { margin: 0 0 8px; font: 400 1.25rem/1.3 var(--serif); }
.journey-replay-prompt > div { display: flex; justify-content: center; gap: 10px; }
.journey-replay-prompt button { min-height: 44px; padding: 9px 15px; border: 1px solid #eee4c94d; border-radius: 24px; background: #193e317d; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: .8125rem; color: #fff5df; }
.journey-replay-prompt button:first-child { background: #ad6245; border-color: #e8c0a655; }
.journey-replay-prompt button:hover { border-color: #edc988; }
.scene-context-note { font-size: .8125rem; line-height: 1.5; color: #d6dcc9; border-top: 1px solid #ffffff20; padding-top: 14px; margin: 16px 0 0; }
.scene-record-action { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 16px 0 0; margin-top: 16px; border-top: 1px solid #ffffff26; font-size: .9375rem; color: #f4e3be; }
.scene-record-action img { width: 40px; height: 50px; object-fit: cover; border-radius: 4px; }
.scene-record-action small { display: block; margin-top: 4px; font-size: .8125rem; line-height: 1.4; color: #dbe0d0; }
.scene-memorials, .scene-extra-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #ffffff26; }
.scene-memorials .eyebrow { font-size: .75rem; margin-bottom: 5px; }
.scene-memorials button { min-height: 44px; padding: 8px 0; text-align: left; font: 500 1.125rem/1.3 var(--serif); border-bottom: 1px solid #ffffff20; }
.journey-chapters-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 34px; }
.journey-chapters-dialog h2 { font: 400 40px/1.1 var(--serif); margin: 14px 32px 20px 0; }
#journeyChaptersDialog .chapter-rail { position: static; display: flex; flex-direction: column; gap: 0; }
#journeyChaptersDialog .chapter-rail button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; height: auto; padding: 12px 2px; font-size: 1rem; text-align: left; border-bottom: 1px solid #ffffff21; }
#journeyChaptersDialog .chapter-tick { flex: 0 0 5px; width: 5px; height: 5px; margin: 0; border-radius: 50%; background: transparent; }
#journeyChaptersDialog .current .chapter-tick { background: #e4bd68; }
.journey-chapter-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; }
.journey-chapter-actions .text-link { min-height: 44px; font-size: .875rem; }
body[data-experience="journey"][data-story-scene="photo"] .canvas-mount { pointer-events: none; }
.journey-image-dialog { width: min(1100px, 94vw); max-width: 94vw; max-height: 92dvh; padding: 28px; }
.journey-image-dialog h2 { font-size: 36px; margin: 0 56px 20px 0; }
.journey-image-dialog > img { display: block; width: 100%; max-height: 65dvh; object-fit: contain; border-radius: 12px; }
.journey-image-dialog > p { margin: 16px 0 0; font-size: .875rem; line-height: 1.5; }
@media (max-width: 800px) {
  body[data-experience="journey"] .chapter-heading { top: 18%; left: 6%; right: 6%; max-width: none; }
  body[data-experience="journey"] .chapter-heading h1 { font-size: clamp(34px, 9vw, 44px); max-width: 330px; margin-top: 12px; }
  body[data-experience="journey"] .chapter-heading .eyebrow { font-size: .75rem; }
  body[data-experience="journey"] .journey-caption-wrap { left: 6%; right: 6%; width: auto; bottom: 180px; transform: none; max-height: 110px; }
  body[data-experience="journey"] #journeyCaption { font-size: .9375rem; line-height: 1.55; }
  body[data-experience="journey"] .journey-transport { bottom: 35px; gap: 5px; }
  .scene-affordance { left: 5%; right: 5%; bottom: 106px; align-items: center; }
  .scene-affordance button { min-height: 44px; }
  #journeyGestureHint { font-size: .75rem; }
  body[data-experience="journey"] .chapter-annotation { left: 5%; right: 5%; bottom: 174px; width: auto; max-width: none; max-height: calc(100dvh - 270px); padding: 22px; }
  body[data-experience="journey"]:has(.chapter-annotation:not([hidden])) .journey-caption-wrap { visibility: hidden; }
  body[data-experience="journey"][data-story-scene="map"] .scene-kind { max-width: 94%; left: 3%; right: 3%; bottom: 6px; font-size: .75rem; text-align: center; }
  .journey-chapters-dialog { padding: 28px; }
  .journey-chapters-dialog h2 { font-size: 34px; }
  .journey-image-dialog { padding: 24px 16px; }
  .journey-image-dialog h2 { font-size: 28px; }
}
@media (max-height: 590px) and (orientation: landscape) {
  body[data-experience="journey"] .chapter-heading { top: 26%; left: 5%; right: 50%; }
  body[data-experience="journey"] .chapter-heading h1 { font-size: 34px; max-width: 320px; }
  body[data-experience="journey"] .journey-caption-wrap { left: auto; right: 5%; bottom: 115px; width: 42%; transform: none; }
  body[data-experience="journey"] .journey-transport { left: auto; right: 5%; bottom: 36px; transform: none; }
  .scene-affordance { left: 5%; right: auto; bottom: 40px; align-items: flex-start; }
  body[data-experience="journey"] .chapter-annotation { left: 5%; right: auto; bottom: 108px; width: 310px; max-height: calc(100dvh - 180px); }
}

body[data-experience="journey"][data-story-scene="terrain"] .scene-kind,body[data-experience="journey"][data-story-scene="memorial"] .scene-kind{display:block;left:auto;right:2%;bottom:10px;max-width:48vw;color:#dce6da;font-size:.75rem;text-align:right;line-height:1.4;text-shadow:0 1px 5px #0b1510;}
@media(max-width:800px){body[data-experience="journey"][data-story-scene="terrain"] .scene-kind,body[data-experience="journey"][data-story-scene="memorial"] .scene-kind{max-width:94%;left:3%;right:3%;bottom:6px;text-align:center}}

.land-gifts{position:absolute;z-index:3;right:5%;top:20%;width:min(360px,35vw);box-sizing:border-box;padding:clamp(14px,2.2vw,30px);border-radius:18px;background:linear-gradient(148deg,#152b24f5,#0c211de8);border:1px solid #e0c58e48;box-shadow:0 16px 40px #0c171c4a;color:#f4eddf;pointer-events:none}
.land-gifts[hidden],.guided-memorial-photo[hidden]{display:none!important}
.land-gifts-header{display:flex;justify-content:space-between;align-items:baseline;gap:6px;margin:.45rem 0 .75rem}
.land-gifts-header strong{font:400 clamp(24px,3.15vw,54px)/1.05 Georgia,serif}
.land-gifts-header span{font-size:clamp(12px,1.25vw,16px);color:#e6c99b}
.land-unit-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:10px 0 14px}
.land-unit-strip i{height:clamp(23px,4.2vw,61px);border-radius:3px;background:#71857b31;border:1px solid #e7ddc639;transform-origin:left;transition:background .8s ease,border-color .8s ease,box-shadow .8s ease}
.land-gifts[data-phase="1"] .land-unit-strip i:first-child,.land-gifts[data-phase="2"] .land-unit-strip i:first-child,.land-gifts[data-phase="3"] .land-unit-strip i:first-child{background:#d3aa67;border-color:#eaced0;box-shadow:0 4px 18px #d3aa6740}
.land-gifts[data-phase="2"] .land-unit-strip i:not(:first-child),.land-gifts[data-phase="3"] .land-unit-strip i:not(:first-child){background:#79b2a2;border-color:#a8cfbd;box-shadow:0 4px 18px #79b2a235}
.land-gifts[data-phase="2"] .land-unit-strip i:nth-child(3){transition-delay:.2s}.land-gifts[data-phase="2"] .land-unit-strip i:nth-child(4){transition-delay:.4s}
.land-gift-key{display:grid;gap:4px;color:#f5ead2;font-size:13px}
.land-gift-key i{display:inline-block;width:9px;height:9px;margin-right:5px;background:#d3aa67;border-radius:2px}
.land-gift-key span:nth-child(2) i{background:#79b2a2}.land-gifts[data-phase="0"] .land-gift-key span,.land-gifts[data-phase="1"] .land-gift-key span:nth-child(2){opacity:.34}
.land-gifts small{display:block;margin-top:10px;line-height:1.35;color:#c9d0c3;font-size:11px}
.guided-memorial-photo{position:absolute;z-index:4;right:5%;top:20%;width:min(228px,25vw);padding:7px;text-align:left;background:#102922ec;color:#f6efdf;border:1px solid #e0c58e5e;border-radius:12px;box-shadow:0 15px 36px #0008;pointer-events:auto;animation:photo-card-in .55s ease both}
.guided-memorial-photo img{display:block;width:100%;height:clamp(85px,21vh,190px);object-fit:contain;background:#121d16;border-radius:6px}
.guided-memorial-photo span{display:grid;gap:3px;padding:8px 7px}
.guided-memorial-photo strong{font:400 clamp(14px,1.5vw,20px) Georgia,serif}.guided-memorial-photo small{opacity:.83;font-size:11px}
body[data-experience="journey"][data-story-scene="photo-tour"] .scene-kind{display:block;left:auto;right:2%;bottom:10px;color:#e9e6d9;text-shadow:0 1px 6px #102922;font-size:.75rem}
@keyframes photo-card-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:800px){.land-gifts{width:min(280px,76vw);right:5%;top:auto;bottom:clamp(178px,29vh,274px);padding:12px}.land-gift-key{font-size:11px}.land-gifts-header{margin:.3rem 0 .4rem}.land-gifts small{margin-top:6px;font-size:10px}.land-unit-strip{margin:7px 0}.guided-memorial-photo{right:5%;top:auto;bottom:clamp(177px,29vh,270px);width:min(145px,38vw)}.guided-memorial-photo img{height:75px}.guided-memorial-photo span{padding:5px 2px}.guided-memorial-photo small{font-size:9px}body[data-experience="journey"][data-story-scene="photo-tour"] .scene-kind{left:3%;right:3%;text-align:center;max-width:94%;bottom:6px}}
@media(prefers-reduced-motion:reduce){.land-unit-strip i{transition:none!important}.guided-memorial-photo{animation:none}}

.atlas-journey[hidden],.atlas-journey button[hidden]{display:none!important}
.atlas-journey{position:absolute;z-index:5;left:5%;top:43%;width:min(280px,43vw);padding:14px 16px 13px;color:#f6efdf;background:#14241fec;border:1px solid #d8c49b64;border-radius:14px;box-shadow:0 8px 28px #0005;pointer-events:auto}
.atlas-journey .atlas-review-label{font-size:.7rem;letter-spacing:.11em;color:#eacb8b}
.atlas-journey p{margin:5px 0 7px;font-size:.95rem;line-height:1.4}
.atlas-journey-actions{display:flex;flex-wrap:wrap;gap:6px}
.atlas-journey button{min-height:44px;padding:0 10px;border:1px solid #d8c49b80;border-radius:8px;background:#f2dba71a;color:#fff7e6;font-size:.875rem;white-space:nowrap}
.atlas-journey button:focus-visible{outline:2px solid #ffe5ad;outline-offset:2px}
@media(max-width:800px){.atlas-journey{left:5%;top:auto;bottom:calc(100% - 52vh);width:min(290px,90vw);padding:10px 12px}.atlas-journey button{min-height:44px}}
@media(max-height:480px) and (orientation:landscape){.atlas-journey{top:42%;bottom:auto;width:min(260px,43vw)}}

/* Step 3 atlas review. Background is geographic context, not a scan overlay. */
body[data-atlas-backdrop][data-view="3d"] #canvasMount {
  isolation:isolate;
  background:#132923;
}
body[data-atlas-backdrop][data-view="3d"] #canvasMount::before {
  content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
  background:
    radial-gradient(ellipse at 53% 48%,#10261f 0%,#10261f75 22%,#10261f26 55%,#10261fc2 100%),
    url("assets/journey/pinewood-neighborhood-backdrop.svg") center 48% / max(86vw,82vh) auto no-repeat;
  opacity:.86;filter:blur(.9px);
}
.atlas-context-credit[hidden],.atlas-record[hidden],.atlas-record [hidden],.atlas-picker[hidden]{display:none!important}
.atlas-context-credit {position:absolute;z-index:2;right:2%;bottom:33px;max-width:50%;margin:0;color:#c6cbb8;font-size:.6875rem;text-align:right;line-height:1.3;pointer-events:none}
.atlas-sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.atlas-journey #atlasPins {background:#e4cd9a;color:#1e2b23;font-weight:650}
.atlas-journey #atlasPins[aria-pressed="true"] {background:#d0b780;color:#16241c;border-color:#f1dcb4}
.atlas-picker {display:flex;align-items:center;gap:8px;margin-top:9px}
.atlas-picker select {min-width:0;flex:1;min-height:40px;background:#213c30;color:#fff4de;border:1px solid #d8c49b80;border-radius:7px;padding:4px 6px;font:inherit;font-size:.85rem}
.atlas-picker span {flex:none;color:#dcceb0;font-size:.72rem}
.atlas-record {
  position:absolute;z-index:5;top:13%;right:4%;width:min(326px,30vw);max-height:73%;
  overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:16px 18px 14px;
  background:#11251ff7;color:#fbf2df;border:1px solid #d4bc8a75;border-radius:16px;
  box-shadow:0 20px 46px #0007;pointer-events:auto;scrollbar-color:#9f8b64 #11251f;
}
.atlas-record-kicker {display:flex;justify-content:space-between;align-items:center;gap:6px;color:#e3c892;text-transform:uppercase;letter-spacing:.11em;font-size:.72rem}
.atlas-record-kicker button {border:1px solid #b59d755c;background:#ffffff0a;border-radius:50%;width:36px;height:36px;color:#f8efd9;font:400 24px/1 var(--serif);flex:none}
.atlas-record h2 {margin:1px 0 5px;font:400 clamp(22px,2.3vw,34px)/1.08 var(--serif);letter-spacing:-.02em}
.atlas-record-dates {margin:0 0 12px;color:#dcc9a4;font-size:.78rem;text-transform:capitalize;line-height:1.4}
.atlas-record-photo {display:block;width:100%;border:1px solid #d4bc8a45;background:#101d17;border-radius:8px;padding:0;overflow:hidden}
.atlas-record-photo img {display:block;width:100%;height:clamp(112px,24vh,220px);object-fit:contain}
.atlas-record-excerpt {font-size:.78rem;color:#e1ceaa;margin:9px 0 4px;line-height:1.4;text-transform:capitalize}
.atlas-record .atlas-journey-actions {margin:11px 0}
.atlas-record .atlas-journey-actions button {background:#e4cd9a;color:#1e2b23;border:0;border-radius:8px;min-height:44px;padding:0 13px;font-weight:650}
.atlas-record details {border-top:1px solid #d4bc8a50;padding-top:8px}
.atlas-record summary {cursor:pointer;min-height:30px;font-size:.84rem;color:#f2dbad}
.atlas-record dl {margin:0}
.atlas-record dt {color:#e5ca94;font-size:.74rem;margin:11px 0 4px}
.atlas-record dd {white-space:pre-line;font-size:.84rem;line-height:1.45;margin:0}
.atlas-record button:focus-visible,.atlas-record summary:focus-visible,.atlas-picker select:focus-visible {outline:2px solid #f3ddb0;outline-offset:2px}
@media(max-width:800px) {
  body[data-atlas-backdrop][data-view="3d"] #canvasMount::before {background-size:100% 100%,auto 103%}
  .atlas-journey {top:auto;bottom:clamp(145px,22vh,205px);width:min(313px,90vw)}
  .atlas-record {top:auto;bottom:clamp(104px,17vh,140px);right:5%;width:min(360px,90vw);max-height:min(58vh,430px);padding:12px 14px}
  .atlas-record h2 {font-size:25px}
  .atlas-record-photo img {height:clamp(90px,19vh,155px)}
  body[data-atlas-backdrop]:has(.atlas-record:not([hidden])) .atlas-journey,body[data-atlas-backdrop]:has(.atlas-record:not([hidden])) .journey-caption-wrap {visibility:hidden}
  .atlas-context-credit {bottom:9px;right:5%;max-width:90%}
}
@media(max-height:480px) and (orientation:landscape) {
  .atlas-record {top:14%;right:3%;bottom:auto;width:min(250px,38vw);max-height:75%}
  .atlas-record-photo img {height:83px}
  .atlas-journey {top:42%;bottom:auto;width:min(280px,41vw)}
  body[data-atlas-backdrop]:has(.atlas-record:not([hidden])) .atlas-journey {visibility:visible}
}
.atlas-journey .atlas-entrance {display:block;min-height:34px;margin-top:4px;padding:0 1px;border:0;background:transparent;color:#e5c995;text-align:left}
.atlas-journey .atlas-entrance:hover {text-decoration:underline;text-underline-offset:3px}
@media(min-width:801px) and (min-height:481px){.atlas-journey{width:min(324px,43vw)}}
.atlas-entrance-actions {display:flex;align-items:center;gap:12px}.atlas-entrance-actions button[hidden]{display:none!important}

/* Keep the stone, not the reference photo, in the main field of view. */
.atlas-record-photo span{display:none}
.atlas-record.atlas-modeled .atlas-record-photo {width:auto;padding:7px 10px;color:#e6d6b1}
.atlas-record.atlas-modeled .atlas-record-photo span {display:inline}
.atlas-record.atlas-modeled .atlas-record-photo img {display:none}
body[data-atlas-memorial][data-view="3d"] .journey-caption-wrap {visibility:hidden}
body[data-atlas-memorial][data-view="3d"] .atlas-context-credit {opacity:.5}
@media(max-width:800px) and (min-height:491px){
 .atlas-record.atlas-modeled {left:5%;right:5%;bottom:clamp(60px,10vh,102px);width:auto;max-height:35vh}
 body[data-atlas-memorial][data-view="3d"] #chapterTitle,
 body[data-atlas-memorial][data-view="3d"] .chapter-eyebrow {visibility:hidden}
}

body[data-atlas-memorial][data-view="3d"] :is(.atlas-journey,#hoverLabel,#chapterTitle,.chapter-kicker) {visibility:hidden}
body[data-atlas-memorial][data-view="3d"] .atlas-record {max-height:min(55vh,520px)}
@media(max-width:800px) and (min-height:491px){
 body[data-atlas-memorial][data-view="3d"] .atlas-record {max-height:35vh}
}
.atlas-record .atlas-journey-actions {display:flex;flex-wrap:wrap;gap:8px}
.atlas-record .atlas-journey-actions #atlasRecordPano:not(:first-child) {border:1px solid #d4bc8a65;background:#ffffff09;color:#f5e2b9}
/* The guided story illuminates its real map controls, without arrows or callouts. */
.atlas-cued {
  outline: 1px solid #fff0c5;
  outline-offset: 3px;
  animation: atlas-guide-control 1.35s ease-out both;
}
@keyframes atlas-guide-control {
  0%{outline-color:#fff0c520;box-shadow:0 0 0 0 #f7d89405}
  40%{outline-color:#fff0c5;box-shadow:0 0 0 4px #f7d89435,0 0 16px #f7d89465}
  100%{outline-color:transparent;box-shadow:0 0 0 0 #f7d89400}
}
.atlas-pin-cue[hidden]{display:none}
.atlas-pin-cue {
  position:fixed;z-index:4;pointer-events:none;width:26px;height:26px;
  border:1px solid #fff0bd;border-radius:50%;transform:translate(-50%,-50%);
  box-shadow:0 0 11px #fff0bd80;
}
.atlas-cued-pin{animation:atlas-guide-pin 1.55s ease-out both}
@keyframes atlas-guide-pin {
  0%{transform:translate(-50%,-50%) scale(.6);opacity:.2}
  44%{transform:translate(-50%,-50%) scale(1.15);opacity:1}
  100%{transform:translate(-50%,-50%) scale(1);opacity:.85}
}
body[data-atlas-directed="true"] :is(.atlas-journey,.atlas-record) {
  transition:background-color .2s ease,border-color .2s ease;
}
body[data-atlas-directed="true"] .journey-caption-wrap:has(#journeyCaption:empty) {
  visibility:hidden;
}
body #photoDialog.atlas-guided-photo[open] {
  position:fixed;box-sizing:border-box;inset:50% auto auto 50%;margin:0;
  width:min(710px,78vw);max-width:none;max-height:73dvh;
  background:#15261ff5;border:1px solid #dac79577;border-radius:15px;
  padding:15px 40px 12px;transform:translate(-50%,-54%);z-index:45;
  box-shadow:0 18px 85px #091611b3;
  animation:atlas-show-source .55s ease-out both;
}
body #photoDialog.atlas-guided-photo img {
  display:block;max-height:min(56dvh,600px);max-width:100%;width:100%;object-fit:contain;
}
body #photoDialog.atlas-guided-photo figcaption {margin:7px 0 0;font-size:.78rem;text-align:center}
body #photoDialog.atlas-guided-photo .dialog-close {
  top:8px;right:8px;min-width:30px;min-height:30px;
  background:#19231ddd;border:1px solid #d6bb8766;border-radius:100%;
}
@keyframes atlas-show-source {
  from{opacity:0;transform:translate(-50%,-51%)}
  to{opacity:1;transform:translate(-50%,-54%)}
}
@media(max-width:800px) and (min-height:481px) {
  body[data-atlas-directed="true"] .journey-caption-wrap{visibility:visible}
  body[data-atlas-directed="true"] .journey-caption-wrap:has(#journeyCaption:empty){visibility:hidden}
  body[data-atlas-directed="true"]:has(.atlas-record:not([hidden]):not(.atlas-modeled)) .atlas-record-photo img{height:min(10dvh,75px)}
  body #photoDialog.atlas-guided-photo[open]{width:92vw;padding:13px 28px 10px}
  body #photoDialog.atlas-guided-photo img{max-height:47dvh}
}
@media(max-height:480px) {
  body #photoDialog.atlas-guided-photo[open]{width:min(55vw,600px);padding:8px 30px}
  body #photoDialog.atlas-guided-photo img{max-height:51dvh}
}
@media(prefers-reduced-motion:reduce){
  .atlas-cued,.atlas-cued-pin,body #photoDialog.atlas-guided-photo[open],
  body[data-atlas-directed="true"][data-atlas-beat="toggle"] .viewport-wrap canvas {animation:none}
}

body[data-experience="journey"][data-atlas-directed="true"] .journey-caption-wrap {
  left:50%;right:auto;bottom:104px;width:min(650px,86vw);
  transform:translateX(-50%);visibility:visible;
}
body[data-experience="journey"][data-atlas-directed="true"] .journey-caption-wrap:has(#journeyCaption:empty) {
  visibility:hidden;
}
body[data-atlas-directed="true"] #journeyCaption {
  display:inline-block;padding:5px 12px;border-radius:8px;
  background:#101b17e5;
}
#journeyGestureHint.atlas-cued {border-radius:5px}
@media(min-width:1180px) and (min-height:540px) {
  body #photoDialog.atlas-guided-photo[open] {
    left:4%;top:50%;width:min(32vw,515px);padding:16px 29px 12px;
    animation:atlas-show-source-side .55s ease-out both;
    transform:translateY(-54%);
  }
  @keyframes atlas-show-source-side {
    from{opacity:0;transform:translateY(-51%)}
    to{opacity:1;transform:translateY(-54%)}
  }
  @media(prefers-reduced-motion:reduce) {
    body #photoDialog.atlas-guided-photo[open]{animation:none}
  }
}
@media(max-width:800px) and (min-height:481px) {
  body[data-experience="journey"][data-atlas-directed="true"] .journey-caption-wrap {bottom:66px}
}
@media(max-height:480px) and (orientation:landscape) {
  body[data-experience="journey"][data-atlas-directed="true"] .journey-caption-wrap {bottom:61px;width:min(42vw,550px)}
}

/* An editorial display behind the scan, without a second map under the model. */
body[data-atlas-stage="quiet"][data-view="3d"] #canvasMount {
  background:radial-gradient(ellipse at 63% 48%,#2d3c34 0%,#192921 53%,#101a16 85%),#14231b;
}
body[data-atlas-stage="quiet"][data-view="3d"] #canvasMount::before {
  background:radial-gradient(ellipse at 61% 41%,#a69a6b0b 0%,transparent 59%);filter:none;
}
body[data-atlas-stage="quiet"] .atlas-context-credit {display:none!important}

body[data-experience="journey"] .atlas-entrance-actions{flex-wrap:wrap;row-gap:.25rem}

/* Do not duplicate the source photo and catalog card on the same screen.
   Fade the catalog and controls without removing their manual functionality. */
body[data-atlas-backdrop] :is(.atlas-record,.atlas-journey,.chapter-annotation) {
  opacity:1;transition:opacity .36s ease,display .36s allow-discrete,visibility .36s allow-discrete;
}
body[data-atlas-backdrop] :is(.atlas-record,.atlas-journey,.chapter-annotation)[hidden],
body[data-atlas-backdrop][data-atlas-memorial] .atlas-journey,
body[data-atlas-backdrop]:has(#photoDialog.atlas-guided-photo[open]:not(.atlas-photo-closing)) .atlas-record {
  opacity:0;pointer-events:none;visibility:hidden;
}
body #photoDialog.atlas-guided-photo[open] {
  animation:none;opacity:1;transition:opacity .36s ease;
}
body #photoDialog.atlas-guided-photo.atlas-photo-closing[open] {opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce) {
  body[data-atlas-backdrop] :is(.atlas-record,.atlas-journey,.chapter-annotation),body #photoDialog.atlas-guided-photo[open] {transition:none}
}
@starting-style {
  body[data-atlas-backdrop] :is(.atlas-record,.atlas-journey,.chapter-annotation):not([hidden]) {opacity:0}
  body #photoDialog.atlas-guided-photo[open]{opacity:0}
}

/* Playback uses just the source-photo panel; the record card belongs to self-guided exploration. */
body[data-atlas-directed="true"] #atlasRecord {display:none!important}
body[data-experience="journey"] #journeyNext.atlas-next-handoff {
  outline:1px solid #fff0c5;outline-offset:3px;
  animation:atlas-guide-control 2.3s ease-in-out infinite;
}
@media(prefers-reduced-motion:reduce){
  body[data-experience="journey"] #journeyNext.atlas-next-handoff {
    animation:none;box-shadow:0 0 0 3px #f7d89435;
  }
}

/* Separate on-site pano navigation from the chapter transport. */
.entrance-pano-nav {position:absolute;right:5%;bottom:22%;display:grid;grid-template-columns:44px minmax(130px,auto) 44px;align-items:center;gap:4px;padding:4px;background:#12251fef;border:1px solid #ecd8b14d;border-radius:15px;color:#fff4df;pointer-events:auto;box-shadow:0 8px 32px #0a191e46}
.entrance-pano-nav button {display:grid;place-items:center;width:44px;height:44px;border-radius:10px}
.entrance-pano-nav button:not([aria-disabled="true"]):hover,.entrance-pano-nav button:focus-visible {background:#ffffff1a;color:#ffe4b2}
.entrance-pano-nav button[aria-disabled="true"] {opacity:.35;cursor:default}
.entrance-pano-nav svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.entrance-pano-text {text-align:center;display:grid;gap:3px;padding:0 3px}
.entrance-pano-text strong {font-size:.9rem;font-weight:600}
.entrance-pano-text small {font-size:.75rem;color:#d8cfb7}
.digital-twin-label {position:absolute;top:max(68px,calc(env(safe-area-inset-top) + 56px));right:5%;border:1px solid #f6e7c348;border-radius:999px;color:#f7ebce;background:#102821e3;padding:5px 10px;font-size:.75rem;letter-spacing:.08em;pointer-events:none}
.entrance-pano-nav[hidden],.digital-twin-label[hidden] {display:none}
@media(max-width:800px) {
 .entrance-pano-nav {right:50%;transform:translateX(50%);bottom:max(216px,31%);max-width:calc(100vw - 32px)}
}
@media(max-height:630px) and (min-width:580px) {
 .entrance-pano-nav {right:5%;bottom:29%;transform:none}
}
