/* One treatment for every device tour: the reel's frame, the page title as the hero, one chapter caption, the Buy pill. */
.td-tour { --td-hero:1; }
.td-frame { position:absolute; inset:18px; border:1px solid var(--site-soft-rule); pointer-events:none; z-index:4; }
.td-frame i { position:absolute; width:7px; height:7px; background:var(--site-muted); }
.td-frame i:nth-child(1) { top:-4px; left:-4px; }
.td-frame i:nth-child(2) { top:-4px; right:-4px; }
.td-frame i:nth-child(3) { bottom:-4px; left:-4px; }
.td-frame i:nth-child(4) { bottom:-4px; right:-4px; }
/* The page title owns the opening frames; the chapter caption owns the rest. */
.td-hero { position:absolute; left:var(--site-gutter); top:50%; transform:translateY(-50%); max-width:44%; pointer-events:none; opacity:var(--td-hero); z-index:3; }
body.site-theme .td-tour .td-hero-maker { margin:0 0 14px; font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--site-muted); }
body.site-theme .td-tour .td-hero h1 { margin:0; font-size:clamp(48px,6.5vw,104px)!important; line-height:.98!important; letter-spacing:-.065em!important; text-transform:none!important; font-weight:600; text-wrap:balance; }
.td-scene-caption { position:absolute; bottom:44px; left:var(--site-gutter); right:var(--site-gutter); text-align:center; pointer-events:none; opacity:calc(1 - var(--td-hero)); padding:0 150px; z-index:3; }
body.site-theme .td-tour .td-caption-title { margin:0; color:var(--site-paper); font-size:26px; font-weight:500; line-height:1.15; letter-spacing:-.03em; text-transform:none; text-wrap:balance; }
body.site-theme .td-tour .td-caption-note { margin:8px auto 0; color:var(--site-muted); font-size:13px; line-height:1.4; max-width:460px; text-wrap:balance; }
.td-caption-note:empty { display:none; }
/* Close up, the caption sits on the board itself: a soft pool of the ground keeps it legible, and vanishes over the plain ground. */
.td-scene-caption::before { content:""; position:absolute; z-index:-1; left:50%; top:50%; width:min(760px,100%); height:calc(100% + 90px); transform:translate(-50%,-50%); background:radial-gradient(closest-side,rgb(21 21 21/.86),rgb(21 21 21/.62) 55%,rgb(21 21 21/0)); pointer-events:none; }
.td-scene-caption > a { pointer-events:auto; display:inline-block; color:var(--site-yellow); font-size:12px; padding:10px 12px; }
.td-dock { position:fixed; right:var(--site-gutter); bottom:max(22px,env(safe-area-inset-bottom)); z-index:30; }
.landing-menu-open .td-dock { visibility:hidden; }
@media(max-width:700px) {
  .td-frame { inset:10px; }
  /* Captions and the hero title sit above the Buy pill's row on phones, never beside it. */
  .td-hero { left:16px; right:16px; top:auto; bottom:76px; transform:none; max-width:none; text-align:left; padding-right:0; }
  body.site-theme .td-tour .td-hero-maker { margin-bottom:8px; font-size:11px; }
  body.site-theme .td-tour .td-hero h1 { font-size:clamp(34px,10vw,52px)!important; }
  .td-scene-caption { bottom:76px; left:16px; right:16px; text-align:left; padding:0; }
  body.site-theme .td-tour .td-caption-title { font-size:21px; }
  body.site-theme .td-tour .td-caption-note { margin-left:0; font-size:12px; max-width:300px; }
  .td-scene-caption > a { padding:10px 0; }
  .td-scene-caption::before { left:-16px; width:calc(100% + 32px); transform:translateY(-50%); background:radial-gradient(farthest-side at 30% 50%,rgb(21 21 21/.86),rgb(21 21 21/.6) 55%,rgb(21 21 21/0)); }
  .td-dock { right:14px; bottom:max(14px,env(safe-area-inset-bottom)); }
}
