/* Progressive enhancement: late or absent graphics never gate the document. */
.voyage-pending #story .scene:not(:first-child) .pin,
.voyage-pending :is(.chapters,.sound,.scrollhint,#readout){display:none}
@media(prefers-reduced-motion:no-preference){
  .voyage #gl{opacity:0;transition:opacity .35s ease-out}
  .voyage.ready #gl{opacity:1}
}
body:not(.voyage)::before,body:not(.voyage) :is(#gl,#labels,#ticks,#readout,.sound,.scrollhint,.read-mode){display:none!important}
body:not(.voyage) .hud-top{position:relative;background:var(--navy)}
body:not(.voyage) .scene{height:auto;border-top:1px solid #c6a35e44}
body:not(.voyage) .scene:first-child{background:linear-gradient(90deg,#0a1426dd,transparent),url('assets/approach.webp') center/cover}
body:not(.voyage) .pin{position:relative;display:block!important;height:auto;padding:clamp(40px,6vw,88px) var(--pad);pointer-events:auto}
body:not(.voyage) :is(.col,.col.wide,.col.center){width:min(100%,66ch);margin:0;text-align:left}
body:not(.voyage) :is([data-in],[data-out],.say .w){opacity:1!important;visibility:visible!important;transform:none!important;will-change:auto;transition:none}
body:not(.voyage) :is(.caption,footer){position:static;text-align:left;width:auto;margin:22px 0 0}
body:not(.voyage) .steps article{grid-area:auto;margin-bottom:1.5rem}
body:not(.voyage) .steps span{font-size:1.1rem}
body:not(.voyage) .trio{display:grid;grid-template-columns:1fr}
body:not(.voyage) .actions{justify-content:flex-start}body:not(.voyage) .lede{margin-left:0}
.read-mode{position:fixed;z-index:11;left:var(--pad);bottom:57px;font:12px var(--sans);color:var(--cream);background:#0a1426ba;padding:5px 10px;text-underline-offset:3px}
@media(max-width:767px){.read-mode{left:auto;right:20px;bottom:auto;top:88px}body:has(#soundset:not([hidden])) .read-mode{top:147px}}
body:not(.voyage) .instruments{display:none}.instruments{position:fixed;z-index:11;bottom:16px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:16px;font:12px var(--sans);color:var(--cream)}.chapters summary,.plain-link,.autoplay{padding:8px 12px;background:#0a1426eb;border:1px solid #c6a35e77;border-radius:1rem;cursor:pointer;white-space:nowrap}.autoplay{color:inherit;font:inherit}.chapters summary{list-style:none}.chapters summary::after{content:' ▴'}.plain-link{text-underline-offset:3px}.chapters ol{position:absolute;bottom:100%;left:0;list-style:none;margin:0 0 6px;padding:6px;background:#0a1426;border:1px solid #c6a35e77;min-width:170px;max-height:65vh;overflow:auto}.chapters button{display:block;width:100%;text-align:left;padding:8px 12px;color:var(--cream);font:12px var(--mono);background:none;border:0;cursor:pointer}.chapters button[aria-current]{color:var(--gold-hot)}.chapters button:hover{background:#18283c}.voyage .last footer{bottom:60px}.sheet-form fieldset{min-width:0} @media(max-width:767px){.instruments{left:20px;transform:none;bottom:10px;gap:8px}.sound,.readout{top:76px}.soundset{top:110px}.videotrial{top:144px}.voyage .last footer{bottom:48px}.voyage .last .pin{padding-bottom:95px}}
/* Keep the controls still as their labels change. Leave a clear strip below the copy. */
.autoplay{min-width:8.8em;font-variant-numeric:tabular-nums}
.autoplay[aria-disabled=true]{cursor:default}
.voyage .pin :is(.col,.caption){pointer-events:auto}
@media(max-width:767px){
  .instruments{gap:4px;bottom:max(8px,env(safe-area-inset-bottom))}
  .instruments :is(.autoplay,summary,.plain-link){min-height:38px;padding:8px 9px;align-content:center}
  .voyage .pin{padding-bottom:calc(56px + env(safe-area-inset-bottom))}
  .voyage .scene:has(.caption) .pin{flex-direction:column;justify-content:flex-end;align-items:stretch}
  .caption{display:block;position:static;width:100%;margin:16px 0 0;font-size:13px}
  .voyage .last footer{bottom:calc(52px + env(safe-area-inset-bottom))}
}
@media(max-width:359px){
  .instruments{left:12px}.instruments :is(.autoplay,summary,.plain-link){padding-inline:8px}
  /* Keep the hero actions on one line and the Writing eyebrow below the HUD. */
  .voyage .actions .button{padding-inline:12px}
  .voyage .scene:has(.post) .eyebrow{margin-bottom:10px}
  .voyage .scene:has(.post) :is(.lede,.post,.aside){margin-top:8px}
  .voyage .post{padding:12px 14px}
}
@media(max-width:359px) and (max-height:680px){.voyage #readout{display:none}}
:focus-visible{outline:2px solid var(--gold-hot);outline-offset:3px}
.motion-route{display:none}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  body > :not(.motion-route){display:none!important}
  body::before{display:none!important}
  .motion-route{display:block;padding:clamp(24px,6vw,72px) var(--pad);color:var(--cream)}
  .motion-route p{margin:0 0 1rem}
}
