/* Each chapter presents one complete 4:9 capture on the existing night sky. */
body{overflow-x:clip}
.viewing-app-tour #duet{opacity:0}
.tour-chapter{
  --tour-top:65px; --tour-stride:clamp(310px,64svh,660px);
  --muted:var(--soft); --focus:var(--sl-gold); --tour-outline:#9f8796;
  --edge:clamp(24px,5.5vw,112px); --dock:0px;
  --frame-pad:clamp(3px,.26vw,4px);
  position:relative;padding:0;color:var(--ink);
}
.tour-chapter,.tour-chapter *{box-sizing:border-box}
.tour-chapter :where(a,button){font-family:Inter,system-ui,sans-serif}
.tour-chapter svg{width:18px;height:18px;display:block;flex:none}
.tour-chapter :where(a,button,[tabindex]):focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.tour-pin{display:none}
.tour-chapter[data-mode="pinned"] .tour-pin{display:block;position:sticky;top:var(--tour-top)}
.tour-chapter[data-mode="pinned"] .tour-flow{display:none}
.tour-chapter[data-mode="pinned"] .tour-runway::after{content:"";display:block;height:calc(var(--tour-intervals) * var(--tour-stride))}
.reel-shell{
  --scene:max(420px,min(995px,calc(100svh - var(--tour-top))));
  display:grid;grid-template-columns:minmax(270px,.82fr) minmax(0,1.4fr);
  grid-template-rows:auto 1fr auto;grid-template-areas:"mast stage" "story stage" "controls stage";
  min-height:var(--scene);position:relative;isolation:isolate;
}
/* The fixed nebula and stars show through. Only the light behind the screens is local. */
.reel-shell::before,.tour-passage::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 40% 42% at 65% 57%,#b34f792f,transparent),
             radial-gradient(ellipse 32% 37% at 85% 48%,#d4a5741a,transparent);
}
.reel-mast,.reel-controls,.reel-index,.tour-arrows,.tour-dialog-actions{display:flex;align-items:center}
.reel-mast{grid-area:mast;justify-content:space-between;gap:12px;padding:clamp(24px,4.1svh,52px) 0 0 var(--edge)}
.reel-mast h2{font:570 clamp(24px,2vw,33px)/1 Fraunces,Georgia,serif;letter-spacing:-.055em;margin:0}
.tour-skip,.tour-related,.tour-dialog-related{display:inline-flex;align-items:center;gap:7px;min-height:36px;text-decoration:none;color:inherit;font-weight:560;font-size:13px;line-height:1.4}
.tour-skip{font-size:12px;font-weight:500;color:var(--muted)}.tour-skip svg{width:13px;height:13px}
.tour-related:hover span,.tour-skip:hover,.tour-dialog-related:hover span{text-decoration:underline;text-underline-offset:4px}
.reel-story{grid-area:story;align-self:center;min-width:0;padding:28px 0 30px var(--edge);position:relative;z-index:1}
.reel-story h3,.passage-story h3{font:600 clamp(58px,7.1vw,122px)/.94 Inter,system-ui,sans-serif;letter-spacing:-.077em;color:var(--ink);margin:0;max-width:8.6ch;text-wrap:balance}
.reel-story p,.passage-story p{margin:clamp(16px,2.7svh,30px) 0 12px;max-width:31ch;color:var(--muted);font:450 clamp(16px,1.32vw,21px)/1.47 Inter,system-ui,sans-serif;text-wrap:pretty}
.reel-story .tour-related,.passage-story .tour-related{font-size:13px;gap:10px;color:var(--sl-gold)}.tour-related svg,.tour-dialog-related svg{width:15px;height:15px}
.reel-controls{grid-area:controls;align-self:end;gap:clamp(16px,2.4vw,42px);padding:0 0 clamp(25px,4.4svh,54px) var(--edge)}
.reel-index{gap:14px;color:var(--muted)}
.reel-cue{display:inline-flex;align-items:center;gap:4px;font:520 12px/1.2 Inter,sans-serif}.reel-cue svg{height:13px;width:13px}
.tour-chapter [data-tour-position]{font:550 12px/1 Inter,sans-serif;letter-spacing:.07em;font-variant-numeric:tabular-nums;white-space:nowrap}
.tour-picker{display:flex;align-items:center;list-style:none;margin:0;padding:0}
.tour-thumb{display:grid;place-items:center;width:clamp(24px,1.8vw,32px);height:40px;text-decoration:none}
.tour-thumb::after{content:"";width:calc(100% - 4px);height:3px;border-radius:3px;background:#887887}
.tour-thumb:hover::after{background:#ceb7c4}
.tour-thumb[aria-current]::after{background:var(--sl-gold);height:4px}
.tour-arrows,.tour-dialog-actions{gap:6px}
.tour-arrows button,.tour-close{width:42px;height:42px;border:1px solid var(--tour-outline);border-radius:50%;display:grid;place-items:center;color:var(--ink);background:#110e17a8;cursor:pointer}
.tour-arrows button:hover,.tour-close:hover{background:#332632;border-color:var(--sl-gold)}
.tour-stage{
  grid-area:stage;position:relative;display:grid;place-items:center;min-width:0;isolation:isolate;
  container-type:size;
}
/* The stage measures the space left by the copy, chapter bar and consent controls. */
.reel-track{
  --shot-width:min(82%,calc((var(--scene) - 110px) * 4 / 9),406px);
  display:grid;justify-items:center;align-items:center;width:100%;height:100%;
}
@supports (width:1cqh){
  .reel-track{--shot-width:min(calc(100cqw - 24px),calc((100cqh - 69px) * 4 / 9),406px)}
}
.reel-card,.tour-passage-photo{display:block;min-width:0;text-decoration:none;color:var(--ink);touch-action:pan-y pinch-zoom;cursor:zoom-in}
.reel-card{display:none;grid-area:1 / 1;width:var(--shot-width);max-width:100%}
.reel-card[data-active]{display:block}
.reel-window{
  display:block;padding:var(--frame-pad);background:linear-gradient(133deg,#675b61,#231f29 18%,#131119 51%,#3d333e 83%,#766469);
  border-radius:calc(var(--frame-pad) + 2px);position:relative;
  box-shadow:0 0 0 1px #dec3b637,0 0 0 2px #080810aa,0 16px 37px -18px #000a;
}
.reel-window img[data-src]{display:none}
.reel-window img{display:block;width:100%;height:auto;aspect-ratio:4/9;object-fit:contain;max-width:100%;background:#0d0910}
@media(prefers-reduced-motion:no-preference){
  html:not([data-still="true"]) .reel-card[data-active]{animation:reel-arrive .32s cubic-bezier(.18,.73,.29,1) both}
  @keyframes reel-arrive{from{opacity:.82;transform:translateY(3px)}to{opacity:1;transform:none}}
}
.reel-credit{display:flex;align-items:center;gap:9px;min-height:43px;font:560 13px/1.2 Inter,sans-serif}
.reel-number{font-size:11px;font-variant-numeric:tabular-nums;color:var(--sl-gold);border-right:1px solid #cbb5c15c;padding-right:9px}
.reel-expand{margin-left:auto;display:grid;place-items:center;min-height:30px;width:30px;border-radius:50%;background:#29222e;color:var(--sl-gold)}
.reel-expand svg{width:14px;height:14px}.reel-card:not([data-active]) .reel-expand{visibility:hidden}
.reel-card:hover .reel-expand,.tour-passage-photo:hover .reel-expand{background:#433447}
.tour-source{color:var(--muted);font:400 12px/1.5 Inter,sans-serif;padding:12px var(--edge);margin:0}
.tour-sr{position:absolute;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tour-flow>.reel-mast{padding:22px var(--edge)}
.tour-passage{display:grid;grid-template-columns:minmax(0,365px) minmax(0,490px);gap:clamp(24px,6vw,90px);justify-content:center;align-items:center;padding:36px var(--edge) 60px;position:relative;isolation:isolate}
.tour-passage-photo{
  width:min(100%,calc((100svh - var(--tour-top) - var(--dock) - 76px) * 4 / 9),365px);
  justify-self:center;
}
.tour-passage .reel-credit{min-height:38px}
.passage-story h3{font-size:clamp(45px,7vw,90px)}.passage-story p{margin-block:14px 6px}
.tour-mobile-nav{display:none}
.tour-dialog{
  margin:auto;inset:0;position:fixed;color-scheme:dark;width:min(760px,calc(100% - 24px));height:min(93dvh,1020px);
  max-height:none;overflow:hidden;border:1px solid #776874;border-radius:17px;background:#17121b;color:#fff4ef;padding:0;box-shadow:0 25px 90px #0008;--focus:#ffdaa5
}
.tour-dialog[open]{display:flex;flex-direction:column}.tour-dialog::backdrop{background:#0d090eeb}
.tour-dialog-tools,.tour-dialog-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 17px}
.tour-dialog-tools>div:first-child{display:flex;align-items:center;gap:12px}
.tour-dialog [data-tour-position]{color:#d7c8ce;font-size:11px}.tour-dialog-tools h2{font:550 18px/1.15 Inter,sans-serif;letter-spacing:-.035em}
.tour-dialog button{color:#fff1e7;border-color:#8d7a8666}.tour-dialog button:hover{background:#4a3947}
.tour-dialog-actions button{width:36px;height:36px}
.tour-loupe{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;background:#100e12;padding:10px}
.tour-loupe img{display:block;width:100%;height:100%;object-fit:contain;margin:auto}
.tour-dialog[data-zoom] .tour-loupe img{width:min(100%,640px);height:auto}
.tour-dialog-bottom{border-top:1px solid #79687544}
.tour-dialog-copy{color:#e1d5d8;font:400 13px/1.45 Inter,sans-serif;max-width:60ch}
.tour-dialog-related{min-height:26px;font-size:12px;color:#f3ccbc}
.tour-zoom{background:transparent;min-height:36px;flex:none;border:1px solid;border-radius:22px;padding:7px 12px;font-weight:550;font-size:12px;cursor:pointer}
@media(max-width:1080px){
 .reel-shell{grid-template-columns:minmax(280px,.88fr) minmax(0,1.3fr)}
 .tour-chapter{--edge:clamp(25px,4vw,65px)}.reel-controls{gap:12px}.reel-index{gap:9px}
 .reel-story h3{font-size:clamp(56px,7.2vw,78px)}
 .tour-arrows button{width:37px;height:37px}
}
@media(max-width:780px){
 .tour-chapter{--tour-top:51px}.tour-mobile-nav{display:flex;align-items:center;gap:15px}
}
@media(max-width:700px){
 .tour-chapter{--edge:clamp(19px,6vw,42px)}
 .reel-shell::before,.tour-passage::before{
   background:radial-gradient(ellipse 64% 37% at 54% 43%,#b34f7933,transparent),
              radial-gradient(ellipse 40% 30% at 84% 42%,#d4a57419,transparent);
 }
 .reel-shell{
   --scene:calc(100svh - var(--tour-top));grid-template-columns:minmax(0,1fr);
   grid-template-areas:"stage" "story" "controls";grid-template-rows:minmax(0,1fr) auto auto;
 }
 .reel-mast{padding:clamp(8px,1.6svh,17px) var(--edge) 2px}.reel-mast h2{font-size:24px}.tour-skip{font-size:11px}
 .tour-pin .reel-mast{position:absolute;z-index:2;top:0;right:var(--edge);padding:0}
 .tour-pin .reel-mast h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .tour-stage{min-height:180px}
 .reel-track{padding:37px 0 5px;--shot-width:min(calc(100% - 124px),calc((var(--scene) - var(--dock) - 157px) * 4 / 9),370px)}
 @supports (width:1cqh){
   .reel-track{--shot-width:min(calc(100cqw - 2 * var(--edge) - 88px),calc((100cqh - 48px) * 4 / 9),370px)}
 }
 .reel-credit{min-height:32px;font-size:12px;gap:7px}.reel-number{padding-right:7px;font-size:10px}
 .reel-expand{width:27px;min-height:27px}
 .reel-card .reel-credit{position:absolute;top:0;left:var(--edge);height:36px;max-width:calc(100% - 115px)}
 .reel-card .reel-expand{width:26px;min-height:26px;background:transparent}
 @media(prefers-reduced-motion:no-preference){
   html:not([data-still="true"]) .reel-card[data-active]{animation-name:reel-mobile-arrive}
 }
 @keyframes reel-mobile-arrive{from{opacity:.82}to{opacity:1}}
 .reel-story{padding:3px var(--edge) 2px;align-self:end}
 .reel-story h3{font-size:clamp(30px,8.2vw,43px);letter-spacing:-.063em;max-width:none;line-height:1.02}
 .reel-story p{font-size:14px;line-height:1.37;margin:4px 0 0;max-width:44ch}
 .reel-story .tour-related{display:none}
 .reel-controls{padding:0 var(--edge) max(10px,env(safe-area-inset-bottom));gap:0}
 .reel-index{gap:12px}.tour-thumb{width:24px;height:28px}.tour-arrows button{width:37px;height:37px}
 .reel-controls .tour-arrows{position:absolute;top:calc((100% - var(--dock) - 104px) / 2);inset-inline:var(--edge);justify-content:space-between;pointer-events:none}
 .reel-controls .tour-arrows button{pointer-events:auto}
 .tour-flow>.reel-mast{padding-block:15px 8px}.tour-passage{grid-template-columns:minmax(0,410px);gap:12px;padding:22px var(--edge) 60px}
 .passage-story h3{font-size:clamp(37px,9vw,57px);max-width:none}.passage-story p{font-size:15px}
 .tour-dialog-tools,.tour-dialog-bottom{padding:10px}.tour-dialog-tools>div:first-child{gap:7px}.tour-dialog-tools h2{font-size:15px}.tour-dialog-actions,.tour-dialog .tour-arrows{gap:3px}
}
@media(max-width:380px){.reel-index{gap:6px}.tour-thumb{width:24px}.reel-controls{gap:6px}.tour-mobile-nav{gap:9px}.tour-mobile-nav a{font-size:12px}.tour-dialog-actions button{height:31px;width:31px}}
@media(max-height:520px) and (min-width:560px){
 .tour-passage{grid-template-columns:minmax(0,210px) minmax(0,420px);gap:32px;padding-block:10px 32px}
 .tour-passage-photo{align-self:start;width:min(100%,calc((100svh - var(--tour-top) - 76px) * 4 / 9))}
 .tour-dialog-bottom .tour-dialog-copy{display:none}
}
@media print{
 .tour-chapter[data-mode] .tour-pin,.tour-chapter .tour-dialog,.tour-chapter .tour-skip{display:none}
 .tour-chapter[data-mode] .tour-flow{display:block}.tour-chapter[data-mode] .tour-runway::after{display:none}.tour-passage{break-inside:avoid}
}

/* Reserve the same physical space for the live consent controls in both modes. */
body:has(#vela-marketing-choices, #vela-google-choices) .tour-chapter{
  --dock:max(72px,calc(66px + env(safe-area-inset-bottom,0px)));
}
body:has(#vela-marketing-choices, #vela-google-choices) .reel-controls{padding-bottom:var(--dock)}
@media(max-width:700px){
  body:has(#vela-marketing-choices, #vela-google-choices) .tour-chapter{--dock:max(60px,calc(58px + env(safe-area-inset-bottom,0px)))}
}

@media(min-width:1160px){
  .reel-shell{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr) clamp(185px,18vw,320px);
    grid-template-areas:"mast stage ." "story stage ." "controls stage ."}
  .tour-picker{position:absolute;right:var(--edge);top:50%;transform:translateY(-50%);align-items:stretch;flex-direction:column}
  .tour-thumb{display:flex;align-items:center;gap:12px;width:auto;min-height:44px;font:500 13px/1.3 Inter,sans-serif;color:var(--muted)}
  .tour-thumb::before{content:"";width:15px;height:1px;background:#ad95a7}
  .tour-thumb::after,.tour-thumb[aria-current]::after,.tour-thumb:hover::after{content:attr(title);height:auto;width:auto;background:none}
  .tour-thumb[aria-current]{color:var(--sl-gold)}
  .tour-thumb[aria-current]::before{height:2px;background:var(--sl-gold);box-shadow:0 0 8px #f6cf9a55}
}
